diff options
author | Will Dietz <w@wdtz.org> | 2019-05-28 20:39:19 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2019-05-28 20:46:21 -0500 |
commit | 7d4bfcae9aa898c7672652e42c9605942e5ef778 (patch) | |
tree | 8fe8286717fbbd7e3b3be3f0cb9903e06a72068d /pkgs/tools/backup | |
parent | eb9a9bb22aa309e857ce7cffb158e80b35869980 (diff) |
dedup: 1.0 -> 2.0
Update deps, enable tests.
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r-- | pkgs/tools/backup/dedup/default.nix | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/pkgs/tools/backup/dedup/default.nix b/pkgs/tools/backup/dedup/default.nix index fdeacf91dd04..c6615f95f056 100644 --- a/pkgs/tools/backup/dedup/default.nix +++ b/pkgs/tools/backup/dedup/default.nix @@ -1,24 +1,29 @@ -{ stdenv, fetchurl, lz4, snappy, openmp }: +{ stdenv, fetchurl, fetchgit, lz4, snappy, libsodium +# For testing +, coreutils, gawk +}: stdenv.mkDerivation rec { pname = "dedup"; - version = "1.0"; + version = "2.0"; src = fetchurl { url = "https://dl.2f30.org/releases/${pname}-${version}.tar.gz"; - sha256 = "0wd4cnzhqk8l7byp1y16slma6r3i1qglwicwmxirhwdy1m7j5ijy"; + sha256 = "0n5kkni4d6blz3s94y0ddyhijb74lxv7msr2mvdmj8l19k0lrfh1"; }; makeFlags = [ "CC:=$(CC)" "PREFIX=${placeholder "out"}" "MANPREFIX=${placeholder "out"}/share/man" - # These are likely wrong on some platforms, please report! - "OPENMPCFLAGS=-fopenmp" - "OPENMPLDLIBS=-lgomp" ]; - buildInputs = [ lz4 snappy openmp ]; + buildInputs = [ lz4 snappy libsodium ]; + + doCheck = true; + + checkInputs = [ coreutils gawk ]; + checkTarget = "test"; meta = with stdenv.lib; { description = "data deduplication program"; |