about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/backup/dedup/default.nix
blob: fdeacf91dd04cb6bf5e7a0c7348b3c76219b9933 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchurl, lz4, snappy, openmp }:

stdenv.mkDerivation rec {
  pname = "dedup";
  version = "1.0";

  src = fetchurl {
    url = "https://dl.2f30.org/releases/${pname}-${version}.tar.gz";
    sha256 = "0wd4cnzhqk8l7byp1y16slma6r3i1qglwicwmxirhwdy1m7j5ijy";
  };

  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 ];

  meta = with stdenv.lib; {
    description = "data deduplication program";
    homepage = https://git.2f30.org/dedup/file/README.html;
    license = with licenses; [ bsd0 isc ];
    maintainers = with maintainers; [ dtzWill ];
  };
}