Merge pull request #91260 from veprbl/pr/zziplib_no_cmake

zziplib: convert back to autotools build
This commit is contained in:
Dmitry Kalinkin 2020-06-24 14:23:35 -04:00 committed by GitHub
commit a9e15a6eb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,6 @@
{ stdenv { stdenv
, cmake , perl
, pkg-config , pkg-config
, ninja
, fetchFromGitHub , fetchFromGitHub
, fetchpatch , fetchpatch
, zip , zip
@ -23,12 +22,6 @@ stdenv.mkDerivation rec {
}; };
patches = [ patches = [
# Fix ninja parsing
(fetchpatch {
url = "https://github.com/gdraheim/zziplib/commit/75e22f3c365b62acbad8d8645d5404242800dfba.patch";
sha256 = "IB0am3K0x4+Ug1CKvowTtkS8JD6zHJJ247A7guJOw80=";
})
# Install man pages # Install man pages
(fetchpatch { (fetchpatch {
url = "https://github.com/gdraheim/zziplib/commit/5583ccc7a247ee27556ede344e93d3ac1dc72e9b.patch"; url = "https://github.com/gdraheim/zziplib/commit/5583ccc7a247ee27556ede344e93d3ac1dc72e9b.patch";
@ -44,9 +37,8 @@ stdenv.mkDerivation rec {
]; ];
nativeBuildInputs = [ nativeBuildInputs = [
cmake perl
pkg-config pkg-config
ninja # make fails, unable to find test2.zip
zip zip
python3 python3
xmlto xmlto
@ -60,10 +52,6 @@ stdenv.mkDerivation rec {
unzip unzip
]; ];
cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
];
# tests are broken (https://github.com/gdraheim/zziplib/issues/20), # tests are broken (https://github.com/gdraheim/zziplib/issues/20),
# and test/zziptests.py requires network access # and test/zziptests.py requires network access
# (https://github.com/gdraheim/zziplib/issues/24) # (https://github.com/gdraheim/zziplib/issues/24)