depot/third_party/nixpkgs/pkgs/tools/backup/dedup/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

34 lines
786 B
Nix

{ 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 stdenv.lib; {
description = "Data deduplication program";
homepage = "https://git.2f30.org/dedup/file/README.html";
license = with licenses; [ bsd0 isc ];
maintainers = with maintainers; [ dtzWill ];
};
}