linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / libzip / default.nix
blobddefa16c2c1d88813ddce0d55c60008851b748eb
1 { lib, stdenv
2 , cmake
3 , fetchpatch
4 , fetchurl
5 , perl
6 , zlib
7 }:
9 stdenv.mkDerivation rec {
10   pname = "libzip";
11   version = "1.7.3";
13   src = fetchurl {
14     url = "https://www.nih.at/libzip/${pname}-${version}.tar.gz";
15     sha256 = "1k5rihiz7m1ahhjzcbq759hb9crzqkgw78pkxga118y5a32pc8hf";
16   };
18   # Remove in next release
19   patches = [
20     (fetchpatch {
21       url = "https://github.com/nih-at/libzip/commit/351201419d79b958783c0cfc7c370243165523ac.patch";
22       sha256 = "0d93z98ki0yiaza93268cxkl35y1r7ll9f7l8sivx3nfxj2c1n8a";
23     })
24   ];
26   outputs = [ "out" "dev" ];
28   nativeBuildInputs = [ cmake perl ];
29   propagatedBuildInputs = [ zlib ];
31   preCheck = ''
32     # regress/runtest is a generated file
33     patchShebangs regress
34   '';
36   meta = with lib; {
37     homepage = "https://www.nih.at/libzip";
38     description = "A C library for reading, creating and modifying zip archives";
39     license = licenses.bsd3;
40     platforms = platforms.unix;
41   };