nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl, perl }:
2
3stdenv.mkDerivation rec {
4 pname = "convmv";
5 version = "2.05";
6
7 src = fetchurl {
8 url = "https://www.j3e.de/linux/convmv/convmv-${version}.tar.gz";
9 sha256 = "19hwv197p7c23f43vvav5bs19z9b72jzca2npkjsxgprwj5ardjk";
10 };
11
12 preBuild=''
13 makeFlags="PREFIX=$out"
14 '';
15
16 patchPhase=''
17 tar -xf testsuite.tar
18 patchShebangs .
19 '';
20
21 doCheck = true;
22 checkTarget = "test";
23
24 buildInputs = [ perl ];
25
26 meta = with lib; {
27 description = "Converts filenames from one encoding to another";
28 platforms = platforms.linux ++ platforms.freebsd ++ platforms.cygwin;
29 maintainers = [ ];
30 license = licenses.gpl2Plus;
31 };
32}