lol
1{lib, stdenv, fetchurl, flex}:
2
3stdenv.mkDerivation rec {
4 pname = "detox";
5 version = "1.2.0";
6
7 src = fetchurl {
8 url = "mirror://sourceforge/detox/${version}/detox-${version}.tar.gz";
9 sha256 = "02cfkf3yhw64xg8mksln8w24gdwgm2x9g3vps7gn6jbjbfd8mh45";
10 };
11
12 buildInputs = [flex];
13
14 hardeningDisable = [ "format" ];
15
16 postInstall = ''
17 install -m644 safe.tbl $out/share/detox/
18 '';
19
20 meta = with lib; {
21 homepage = "http://detox.sourceforge.net/";
22 description = "Utility designed to clean up filenames";
23 longDescription = ''
24 Detox is a utility designed to clean up filenames. It replaces
25 difficult to work with characters, such as spaces, with standard
26 equivalents. It will also clean up filenames with UTF-8 or Latin-1
27 (or CP-1252) characters in them.
28 '';
29 license = licenses.bsd3;
30 platforms = platforms.linux;
31 maintainers = with maintainers; [ ];
32 };
33}