8 stdenv.mkDerivation (finalAttrs: {
12 src = fetchFromGitea {
13 domain = "codeberg.org";
16 rev = "v${finalAttrs.version}";
17 hash = "sha256-jRjVuN/FNDpKB+Ibi+Mkm+WhB16cz9c33dOOeiPdgr8=";
18 # Unicode file names lead to different checksums on HFS+ vs. other
19 # filesystems because of unicode normalisation. The testdir
20 # directories have such files and will be removed.
21 postFetch = "rm -r $out/testdir";
24 buildInputs = [ libjodycode ];
29 [ "PREFIX=${placeholder "out"}" ]
30 ++ lib.optionals stdenv.hostPlatform.isLinux [
34 ++ lib.optionals stdenv.cc.isGNU [ "HARDEN=1" ];
36 enableParallelBuilding = true;
38 doCheck = false; # broken Makefile, the above also removes tests
41 install -Dm444 -t $out/share/doc/jdupes CHANGES.txt LICENSE.txt README.md
45 description = "Powerful duplicate file finder and an enhanced fork of 'fdupes'";
47 jdupes is a program for identifying and taking actions upon
48 duplicate files. This fork known as 'jdupes' is heavily modified
49 from and improved over the original.
51 homepage = "https://codeberg.org/jbruchon/jdupes";
52 license = lib.licenses.mit;
54 mainProgram = "jdupes";