2023-11-16 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, flex, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "detox";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.4.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dharple";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-cTuK5EIimRVZ1nfuTa1ds6xrawYIAbwNNIkNONd9y4Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [ flex autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://github.com/dharple/detox";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Utility designed to clean up filenames";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/dharple/detox/blob/v${version}/CHANGELOG.md";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
Detox is a utility designed to clean up filenames. It replaces
|
|
|
|
difficult to work with characters, such as spaces, with standard
|
|
|
|
equivalents. It will also clean up filenames with UTF-8 or Latin-1
|
|
|
|
(or CP-1252) characters in them.
|
|
|
|
'';
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2023-11-16 04:20:00 +00:00
|
|
|
mainProgram = "detox";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|