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-07-27 06:49:29 +00:00
|
|
|
version = "2.3.2";
|
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}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-VPaNDKUgaJRF75cxksK0nZNFarqhat7n8ztIdBoxHI8=";
|
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
|
|
|
};
|
|
|
|
}
|