nixpkgs/pkgs/tools/backup/dedup/default.nix

35 lines
794 B
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchgit, lz4, snappy, libsodium
# For testing
, coreutils, gawk
}:
2019-04-14 22:32:34 +02:00
stdenv.mkDerivation rec {
pname = "dedup";
version = "2.0";
2019-04-14 22:32:34 +02:00
src = fetchurl {
url = "https://dl.2f30.org/releases/${pname}-${version}.tar.gz";
sha256 = "0n5kkni4d6blz3s94y0ddyhijb74lxv7msr2mvdmj8l19k0lrfh1";
2019-04-14 22:32:34 +02:00
};
makeFlags = [
"CC:=$(CC)"
"PREFIX=${placeholder "out"}"
"MANPREFIX=${placeholder "out"}/share/man"
];
buildInputs = [ lz4 snappy libsodium ];
doCheck = true;
checkInputs = [ coreutils gawk ];
checkTarget = "test";
2019-04-14 22:32:34 +02:00
meta = with stdenv.lib; {
description = "data deduplication program";
homepage = https://git.2f30.org/dedup/file/README.html;
license = with licenses; [ bsd0 isc ];
maintainers = with maintainers; [ dtzWill ];
};
}