Skip to content

Commit

Permalink
runzip: fix build, drop unused libzip from buildInputs, enable tests (N…
Browse files Browse the repository at this point in the history
  • Loading branch information
7c6f434c authored Feb 2, 2025
2 parents 8532db2 + 2d4d57f commit e19fa2f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions pkgs/by-name/ru/runzip/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
lib,
stdenv,
fetchFromGitHub,
libzip,
libiconv,
zlib,
autoreconfHook,
}:

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

src = fetchFromGitHub {
Expand All @@ -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;
Expand Down

0 comments on commit e19fa2f

Please sign in to comment.