mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 00:25:24 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
35 lines
784 B
Nix
35 lines
784 B
Nix
{ lib, stdenv, fetchurl, lz4, snappy, libsodium
|
|
# For testing
|
|
, coreutils, gawk
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dedup";
|
|
version = "2.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://dl.2f30.org/releases/${pname}-${version}.tar.gz";
|
|
sha256 = "0n5kkni4d6blz3s94y0ddyhijb74lxv7msr2mvdmj8l19k0lrfh1";
|
|
};
|
|
|
|
makeFlags = [
|
|
"CC:=$(CC)"
|
|
"PREFIX=${placeholder "out"}"
|
|
"MANPREFIX=${placeholder "out"}/share/man"
|
|
];
|
|
|
|
buildInputs = [ lz4 snappy libsodium ];
|
|
|
|
doCheck = true;
|
|
|
|
checkInputs = [ coreutils gawk ];
|
|
checkTarget = "test";
|
|
|
|
meta = with lib; {
|
|
description = "Data deduplication program";
|
|
homepage = "https://git.2f30.org/dedup/file/README.html";
|
|
license = with licenses; [ bsd0 isc ];
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
};
|
|
}
|