@@ -0,0 +1,29 @@
1+{ stdenv, fetchurl, lz4, snappy, openmp }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "dedup";
5+ version = "1.0";
6+
7+ src = fetchurl {
8+ url = "https://dl.2f30.org/releases/${pname}-${version}.tar.gz";
9+ sha256 = "0wd4cnzhqk8l7byp1y16slma6r3i1qglwicwmxirhwdy1m7j5ijy";
10+ };
11+
12+ makeFlags = [
13+ "CC:=$(CC)"
14+ "PREFIX=${placeholder "out"}"
15+ "MANPREFIX=${placeholder "out"}/share/man"
16+ # These are likely wrong on some platforms, please report!
17+ "OPENMPCFLAGS=-fopenmp"
18+ "OPENMPLDLIBS=-lgomp"
19+ ];
20+
21+ buildInputs = [ lz4 snappy openmp ];
22+
23+ meta = with stdenv.lib; {
24+ description = "data deduplication program";
25+ homepage = https://git.2f30.org/dedup/file/README.html;
26+ license = with licenses; [ bsd0 isc ];
27+ maintainers = with maintainers; [ dtzWill ];
28+ };
29+}