2016-04-27 02:46:36 +02:00
|
|
|
{ stdenv, fetchurl, perl, zlib }:
|
2007-11-11 17:19:00 +01:00
|
|
|
|
2012-02-09 15:09:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-04-27 02:46:36 +02:00
|
|
|
name = "libzip-${version}";
|
|
|
|
version = "1.1.2";
|
2015-04-06 12:11:51 +02:00
|
|
|
|
2009-04-22 01:18:09 +02:00
|
|
|
src = fetchurl {
|
2012-02-09 15:09:08 +01:00
|
|
|
url = "http://www.nih.at/libzip/${name}.tar.gz";
|
2016-04-27 02:46:36 +02:00
|
|
|
sha256 = "08b26qbfxq6z5xf36y1d8insm5valv83dhj933iag6man04prb2r";
|
2009-04-22 01:18:09 +02:00
|
|
|
};
|
2015-04-06 12:11:51 +02:00
|
|
|
|
2016-04-25 13:51:29 +02:00
|
|
|
outputs = [ "dev" "out" ];
|
|
|
|
|
2016-04-27 02:46:36 +02:00
|
|
|
nativeBuildInputs = [ perl ];
|
2012-02-09 15:22:13 +01:00
|
|
|
propagatedBuildInputs = [ zlib ];
|
2007-11-11 17:19:00 +01:00
|
|
|
|
2016-04-27 02:46:36 +02:00
|
|
|
preInstall = ''
|
|
|
|
patchShebangs man/handle_links
|
|
|
|
'';
|
|
|
|
|
2012-02-28 17:26:55 +01:00
|
|
|
# At least mysqlWorkbench cannot find zipconf.h; I think also openoffice
|
|
|
|
# had this same problem. This links it somewhere that mysqlworkbench looks.
|
|
|
|
postInstall = ''
|
2016-04-27 02:48:59 +02:00
|
|
|
mkdir -p $dev/lib
|
|
|
|
mv $out/lib/libzip $dev/lib/libzip
|
2016-04-25 13:51:29 +02:00
|
|
|
( cd $dev/include ; ln -s ../lib/libzip/include/zipconf.h zipconf.h )
|
2012-02-28 17:26:55 +01:00
|
|
|
'';
|
|
|
|
|
2009-04-22 01:18:09 +02:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.nih.at/libzip;
|
|
|
|
description = "A C library for reading, creating and modifying zip archives";
|
2016-04-27 03:10:54 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-04-22 01:18:09 +02:00
|
|
|
};
|
2007-11-11 17:19:00 +01:00
|
|
|
}
|