2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, lz4, snappy, libsodium
|
2019-05-29 01:39:19 +00:00
|
|
|
# For testing
|
|
|
|
, coreutils, gawk
|
|
|
|
}:
|
2019-04-14 20:32:34 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dedup";
|
2019-05-29 01:39:19 +00:00
|
|
|
version = "2.0";
|
2019-04-14 20:32:34 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dl.2f30.org/releases/${pname}-${version}.tar.gz";
|
2019-05-29 01:39:19 +00:00
|
|
|
sha256 = "0n5kkni4d6blz3s94y0ddyhijb74lxv7msr2mvdmj8l19k0lrfh1";
|
2019-04-14 20:32:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"CC:=$(CC)"
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
"MANPREFIX=${placeholder "out"}/share/man"
|
|
|
|
];
|
|
|
|
|
2019-05-29 01:39:19 +00:00
|
|
|
buildInputs = [ lz4 snappy libsodium ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkInputs = [ coreutils gawk ];
|
|
|
|
checkTarget = "test";
|
2019-04-14 20:32:34 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-30 08:02:26 +00:00
|
|
|
description = "Data deduplication program";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://git.2f30.org/dedup/file/README.html";
|
2019-04-14 20:32:34 +00:00
|
|
|
license = with licenses; [ bsd0 isc ];
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|