diff options
author | Ben Wolsieffer <benwolsieffer@gmail.com> | 2019-11-13 15:58:39 -0500 |
---|---|---|
committer | Renaud <c0bw3b@users.noreply.github.com> | 2019-11-13 21:58:39 +0100 |
commit | a72ba67852673cc2f19c847ed8acccfb3ef8c57d (patch) | |
tree | 3ef80ee8b7c73018ff0b0e488e525fc9ba41d51a /pkgs/development/libraries/libzip/default.nix | |
parent | f0f1e12a1caecb879077ec573fe52ea5e5c0191b (diff) | |
download | nixpkgs-a72ba67852673cc2f19c847ed8acccfb3ef8c57d.tar nixpkgs-a72ba67852673cc2f19c847ed8acccfb3ef8c57d.tar.gz nixpkgs-a72ba67852673cc2f19c847ed8acccfb3ef8c57d.tar.bz2 nixpkgs-a72ba67852673cc2f19c847ed8acccfb3ef8c57d.tar.lz nixpkgs-a72ba67852673cc2f19c847ed8acccfb3ef8c57d.tar.xz nixpkgs-a72ba67852673cc2f19c847ed8acccfb3ef8c57d.tar.zst nixpkgs-a72ba67852673cc2f19c847ed8acccfb3ef8c57d.zip |
libzip: 1.3.0 -> 1.5.2
+ fix pkgconfig paths (#68044)
Diffstat (limited to 'pkgs/development/libraries/libzip/default.nix')
-rw-r--r-- | pkgs/development/libraries/libzip/default.nix | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/pkgs/development/libraries/libzip/default.nix b/pkgs/development/libraries/libzip/default.nix index 43a5f7dc841..9f9331b90dd 100644 --- a/pkgs/development/libraries/libzip/default.nix +++ b/pkgs/development/libraries/libzip/default.nix @@ -1,37 +1,31 @@ -{ stdenv, fetchurl, perl, zlib }: +{ stdenv, fetchurl, cmake, perl, zlib }: stdenv.mkDerivation rec { pname = "libzip"; - version = "1.3.0"; + version = "1.5.2"; src = fetchurl { url = "https://www.nih.at/libzip/${pname}-${version}.tar.gz"; - sha256 = "1633dvjc08zwwhzqhnv62rjf1abx8y5njmm8y16ik9iwd07ka6d9"; + sha256 = "05ay8cbm882br0ir2cmzrvdq8q5mr1bnf53l4305xzigpd54lsdy"; }; + # Fix pkgconfig file paths postPatch = '' - patchShebangs test-driver - patchShebangs man/handle_links + sed -i CMakeLists.txt \ + -e 's#\\''${exec_prefix}/''${CMAKE_INSTALL_LIBDIR}#''${CMAKE_INSTALL_FULL_LIBDIR}#' \ + -e 's#\\''${prefix}/''${CMAKE_INSTALL_INCLUDEDIR}#''${CMAKE_INSTALL_FULL_INCLUDEDIR}#' ''; outputs = [ "out" "dev" ]; - nativeBuildInputs = [ perl ]; + nativeBuildInputs = [ cmake perl ]; propagatedBuildInputs = [ zlib ]; preCheck = '' - # regress/runtests is a generated file + # regress/runtest is a generated file patchShebangs regress ''; - # At least mysqlWorkbench cannot find zipconf.h; I think also openoffice - # had this same problem. This links it somewhere that mysqlworkbench looks. - postInstall = '' - mkdir -p $dev/lib - mv $out/lib/libzip $dev/lib/libzip - ( cd $dev/include ; ln -s ../lib/libzip/include/zipconf.h zipconf.h ) - ''; - meta = with stdenv.lib; { homepage = https://www.nih.at/libzip; description = "A C library for reading, creating and modifying zip archives"; |