lol
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 pkg-config,
7 ncurses,
8 pcre2,
9 sqlite,
10}:
11
12stdenv.mkDerivation rec {
13 pname = "fdupes";
14 version = "2.4.0";
15
16 src = fetchFromGitHub {
17 owner = "adrianlopezroche";
18 repo = "fdupes";
19 rev = "v${version}";
20 hash = "sha256-epregz+i2mML5zCQErQDJFUFUxnUoqcBlUPGPJ4tcmc=";
21 };
22
23 nativeBuildInputs = [
24 autoreconfHook
25 pkg-config
26 ];
27 buildInputs = [
28 ncurses
29 pcre2
30 sqlite
31 ];
32
33 meta = with lib; {
34 description = "Identifies duplicate files residing within specified directories";
35 longDescription = ''
36 fdupes searches the given path for duplicate files.
37 Such files are found by comparing file sizes and MD5 signatures,
38 followed by a byte-by-byte comparison.
39 '';
40 homepage = "https://github.com/adrianlopezroche/fdupes";
41 license = licenses.mit;
42 platforms = platforms.all;
43 maintainers = [ maintainers.maggesi ];
44 mainProgram = "fdupes";
45 };
46}