nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 17.09 34 lines 918 B view raw
1{ stdenv, fetchurl, perl, zlib }: 2 3stdenv.mkDerivation rec { 4 name = "libzip-${version}"; 5 version = "1.2.0"; 6 7 src = fetchurl { 8 url = "http://www.nih.at/libzip/${name}.tar.gz"; 9 sha256 = "17vxj2ffsxwh8lkc6801ppmwj15jp8q58rin76znxfbx88789ybc"; 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 = http://www.nih.at/libzip; 31 description = "A C library for reading, creating and modifying zip archives"; 32 platforms = stdenv.lib.platforms.unix; 33 }; 34}