2024-05-15 15:35:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, ncurses
|
|
|
|
, pcre2
|
|
|
|
, sqlite
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fdupes";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "adrianlopezroche";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "fdupes";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-BW6a5vKRAuXs/zWPHhtZs6Y4scyCEfqHEAkGUSUiwkI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
pcre2
|
|
|
|
sqlite
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Identifies duplicate files residing within specified directories";
|
|
|
|
longDescription = ''
|
|
|
|
fdupes searches the given path for duplicate files.
|
|
|
|
Such files are found by comparing file sizes and MD5 signatures,
|
|
|
|
followed by a byte-by-byte comparison.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/adrianlopezroche/fdupes";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.maggesi ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "fdupes";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|