nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 libiconv,
6 zlib,
7 autoreconfHook,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 version = "1.4";
12 pname = "runzip";
13
14 nativeBuildInputs = [ autoreconfHook ];
15 buildInputs = [
16 libiconv
17 zlib
18 ];
19
20 src = fetchFromGitHub {
21 owner = "vlm";
22 repo = "zip-fix-filename-encoding";
23 rev = "v${finalAttrs.version}";
24 sha256 = "0l5zbb5hswxczigvyal877j0aiq3fc01j3gv88bvy7ikyvw3lc07";
25 };
26
27 postPatch = ''
28 patchShebangs tests/check-runzip.sh
29 '';
30
31 env.NIX_CFLAGS_COMPILE = toString [
32 "-Wno-error=implicit-int"
33 "-Wno-error=incompatible-pointer-types"
34 ];
35
36 doCheck = true;
37
38 meta = {
39 description = "Tool to convert filename encoding inside a ZIP archive";
40 license = lib.licenses.bsd2;
41 maintainers = [ lib.maintainers.raskin ];
42 platforms = lib.platforms.unix;
43 mainProgram = "runzip";
44 };
45})