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