1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 10:56:53 +00:00
nixpkgs/pkgs/development/libraries/libzip/default.nix

35 lines
918 B
Nix
Raw Normal View History

2016-04-27 01:46:36 +01:00
{ stdenv, fetchurl, perl, zlib }:
stdenv.mkDerivation rec {
2016-04-27 01:46:36 +01:00
name = "libzip-${version}";
2017-03-12 11:33:04 +00:00
version = "1.2.0";
src = fetchurl {
url = "http://www.nih.at/libzip/${name}.tar.gz";
2017-03-12 11:33:04 +00:00
sha256 = "17vxj2ffsxwh8lkc6801ppmwj15jp8q58rin76znxfbx88789ybc";
};
outputs = [ "out" "dev" ];
2016-04-25 12:51:29 +01:00
2016-04-27 01:46:36 +01:00
nativeBuildInputs = [ perl ];
propagatedBuildInputs = [ zlib ];
2016-04-27 01:46:36 +01:00
preInstall = ''
patchShebangs man/handle_links
'';
# 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
2016-04-25 12:51:29 +01:00
( cd $dev/include ; ln -s ../lib/libzip/include/zipconf.h zipconf.h )
'';
meta = {
homepage = http://www.nih.at/libzip;
description = "A C library for reading, creating and modifying zip archives";
2016-04-27 02:10:54 +01:00
platforms = stdenv.lib.platforms.unix;
};
}