1{ lib, stdenv, fetchurl, lz4, snappy, libsodium
2# For testing
3, coreutils, gawk
4}:
5
6stdenv.mkDerivation rec {
7 pname = "dedup";
8 version = "2.0";
9
10 src = fetchurl {
11 url = "https://dl.2f30.org/releases/${pname}-${version}.tar.gz";
12 sha256 = "0n5kkni4d6blz3s94y0ddyhijb74lxv7msr2mvdmj8l19k0lrfh1";
13 };
14
15 makeFlags = [
16 "CC:=$(CC)"
17 "PREFIX=${placeholder "out"}"
18 "MANPREFIX=${placeholder "out"}/share/man"
19 ];
20
21 buildInputs = [ lz4 snappy libsodium ];
22
23 doCheck = true;
24
25 nativeCheckInputs = [ coreutils gawk ];
26 checkTarget = "test";
27
28 meta = with lib; {
29 description = "Data deduplication program";
30 homepage = "https://git.2f30.org/dedup/file/README.html";
31 license = with licenses; [ bsd0 isc ];
32 maintainers = with maintainers; [ dtzWill ];
33 };
34}