blob: f32d026ac1cf3573c6c72260935ede8ee7996422 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ lib, stdenv, fetchFromGitHub, libgcrypt
, pkg-config, glib, linuxHeaders ? stdenv.cc.libc.linuxHeaders, sqlite
, util-linux, testers, duperemove }:
stdenv.mkDerivation rec {
pname = "duperemove";
version = "0.13";
src = fetchFromGitHub {
owner = "markfasheh";
repo = "duperemove";
rev = "v${version}";
hash = "sha256-D3+p8XgokKIHEwZnvOkn7cionVH1gsypcURF+PBpugY=";
};
postPatch = ''
substituteInPlace util.c --replace \
"lscpu" "${lib.getBin util-linux}/bin/lscpu"
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libgcrypt glib linuxHeaders sqlite ];
makeFlags = [
"PREFIX=${placeholder "out"}"
"VERSION=v${version}"
];
passthru.tests.version = testers.testVersion {
package = duperemove;
command = "duperemove --version";
version = "v${version}";
};
meta = with lib; {
description = "A simple tool for finding duplicated extents and submitting them for deduplication";
homepage = "https://github.com/markfasheh/duperemove";
license = licenses.gpl2;
maintainers = with maintainers; [ bluescreen303 thoughtpolice ];
platforms = platforms.linux;
};
}
|