Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 34 lines 920 B view raw
1{ stdenv, fetchurl, perl, zlib }: 2 3stdenv.mkDerivation rec { 4 name = "libzip-${version}"; 5 version = "1.3.0"; 6 7 src = fetchurl { 8 url = "https://www.nih.at/libzip/${name}.tar.gz"; 9 sha256 = "1633dvjc08zwwhzqhnv62rjf1abx8y5njmm8y16ik9iwd07ka6d9"; 10 }; 11 12 outputs = [ "out" "dev" ]; 13 14 nativeBuildInputs = [ perl ]; 15 propagatedBuildInputs = [ zlib ]; 16 17 preInstall = '' 18 patchShebangs man/handle_links 19 ''; 20 21 # At least mysqlWorkbench cannot find zipconf.h; I think also openoffice 22 # had this same problem. This links it somewhere that mysqlworkbench looks. 23 postInstall = '' 24 mkdir -p $dev/lib 25 mv $out/lib/libzip $dev/lib/libzip 26 ( cd $dev/include ; ln -s ../lib/libzip/include/zipconf.h zipconf.h ) 27 ''; 28 29 meta = { 30 homepage = https://www.nih.at/libzip; 31 description = "A C library for reading, creating and modifying zip archives"; 32 platforms = stdenv.lib.platforms.unix; 33 }; 34}