2024-01-13 08:15:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitea, libjodycode }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jdupes";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.27.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "codeberg.org";
|
2020-04-24 23:36:52 +00:00
|
|
|
owner = "jbruchon";
|
|
|
|
repo = "jdupes";
|
|
|
|
rev = "v${version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-hR5nl8G7TYVm4ol/jgo7iOb4dLr2MovgjKSXCD2UwMg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
# Unicode file names lead to different checksums on HFS+ vs. other
|
|
|
|
# filesystems because of unicode normalisation. The testdir
|
|
|
|
# directories have such files and will be removed.
|
2022-06-16 17:23:12 +00:00
|
|
|
postFetch = "rm -r $out/testdir";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
buildInputs = [ libjodycode ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
dontConfigure = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
2021-01-15 22:18:51 +00:00
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
2020-04-24 23:36:52 +00:00
|
|
|
"ENABLE_DEDUPE=1"
|
|
|
|
"STATIC_DEDUPE_H=1"
|
2021-01-15 22:18:51 +00:00
|
|
|
] ++ lib.optionals stdenv.cc.isGNU [
|
2020-08-20 17:08:02 +00:00
|
|
|
"HARDEN=1"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = false; # broken Makefile, the above also removes tests
|
|
|
|
|
|
|
|
postInstall = ''
|
2024-01-13 08:15:51 +00:00
|
|
|
install -Dm444 -t $out/share/doc/jdupes CHANGES.txt LICENSE.txt README.md
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Powerful duplicate file finder and an enhanced fork of 'fdupes'";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
jdupes is a program for identifying and taking actions upon
|
|
|
|
duplicate files. This fork known as 'jdupes' is heavily modified
|
|
|
|
from and improved over the original.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/jbruchon/jdupes";
|
|
|
|
license = licenses.mit;
|
2024-01-13 08:15:51 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "jdupes";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|