Unverified Commit e19fa2f3 authored by 7c6f434c's avatar 7c6f434c Committed by GitHub
Browse files

runzip: fix build, drop unused libzip from buildInputs, enable tests (#378802)

parents 8532db2a 2d4d57fd
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
@@ -2,8 +2,8 @@
  lib,
  stdenv,
  fetchFromGitHub,
  libzip,
  libiconv,
  zlib,
  autoreconfHook,
}:

@@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
  nativeBuildInputs = [ autoreconfHook ];
  buildInputs = [
    libiconv
    libzip
    zlib
  ];

  src = fetchFromGitHub {
@@ -24,6 +24,17 @@ stdenv.mkDerivation rec {
    sha256 = "0l5zbb5hswxczigvyal877j0aiq3fc01j3gv88bvy7ikyvw3lc07";
  };

  postPatch = ''
    patchShebangs tests/check-runzip.sh
  '';

  env.NIX_CFLAGS_COMPILE = toString [
    "-Wno-error=implicit-int"
    "-Wno-error=incompatible-pointer-types"
  ];

  doCheck = true;

  meta = {
    description = "Tool to convert filename encoding inside a ZIP archive";
    license = lib.licenses.bsd2;