lol
1{ lib, stdenv, fetchFromGitHub, flex, autoreconfHook }:
2
3stdenv.mkDerivation rec {
4 pname = "detox";
5 version = "1.4.5";
6
7 src = fetchFromGitHub {
8 owner = "dharple";
9 repo = pname;
10 rev = "v${version}";
11 hash = "sha256-cTuK5EIimRVZ1nfuTa1ds6xrawYIAbwNNIkNONd9y4Q=";
12 };
13
14 nativeBuildInputs = [ flex autoreconfHook ];
15
16 hardeningDisable = [ "format" ];
17
18 meta = with lib; {
19 homepage = "https://github.com/dharple/detox";
20 description = "Utility designed to clean up filenames";
21 changelog = "https://github.com/dharple/detox/blob/v${version}/CHANGELOG.md";
22 longDescription = ''
23 Detox is a utility designed to clean up filenames. It replaces
24 difficult to work with characters, such as spaces, with standard
25 equivalents. It will also clean up filenames with UTF-8 or Latin-1
26 (or CP-1252) characters in them.
27 '';
28 license = licenses.bsd3;
29 platforms = platforms.linux;
30 maintainers = with maintainers; [ ];
31 mainProgram = "detox";
32 };
33}