7 , linuxHeaders ? stdenv.cc.libc.linuxHeaders
14 stdenv.mkDerivation rec {
18 src = fetchFromGitHub {
22 hash = "sha256-iMv80UKktYOhNfVA3mW6kKv8TwLZaP6MQt24t3Rchk4=";
26 substituteInPlace util.c --replace \
27 "lscpu" "${lib.getBin util-linux}/bin/lscpu"
30 nativeBuildInputs = [ pkg-config ];
31 buildInputs = [ libgcrypt glib linuxHeaders sqlite util-linux ];
34 "PREFIX=${placeholder "out"}"
38 passthru.tests.version = testers.testVersion {
40 command = "duperemove --version";
41 version = "v${version}";
45 description = "Simple tool for finding duplicated extents and submitting them for deduplication";
46 homepage = "https://github.com/markfasheh/duperemove";
47 license = licenses.gpl2Only;
48 maintainers = with maintainers; [ bluescreen303 thoughtpolice ];
49 platforms = platforms.linux;
50 mainProgram = "duperemove";