2012-02-09 15:09:08 +01:00
|
|
|
{ stdenv, fetchurl, zlib }:
|
2007-11-11 17:19:00 +01:00
|
|
|
|
2012-02-09 15:09:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libzip-0.10";
|
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";
|
|
|
|
sha256 = "1lnpxcl4z084bvx3jd0pqgr350ljnizpnlwh5vbzjp0iw9jakbxp";
|
2009-04-22 01:18:09 +02:00
|
|
|
};
|
|
|
|
|
2012-02-09 15:22:13 +01:00
|
|
|
propagatedBuildInputs = [ zlib ];
|
2007-11-11 17:19:00 +01:00
|
|
|
|
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 = ''
|
|
|
|
( cd $out/include ; ln -s ../lib/libzip/include/zipconf.h zipconf.h )
|
|
|
|
'';
|
|
|
|
|
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";
|
|
|
|
};
|
2007-11-11 17:19:00 +01:00
|
|
|
}
|