2012-02-09 14:09:08 +00:00
|
|
|
{ stdenv, fetchurl, zlib }:
|
2007-11-11 16:19:00 +00:00
|
|
|
|
2012-02-09 14:09:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2013-12-12 20:26:57 +00:00
|
|
|
name = "libzip-0.11.1";
|
2009-04-21 23:18:09 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-02-09 14:09:08 +00:00
|
|
|
url = "http://www.nih.at/libzip/${name}.tar.gz";
|
2013-12-12 20:26:57 +00:00
|
|
|
sha256 = "15fwscng2lk0ypg45awk4y2grjqm987frnjcsnbxznfgpckrq7yy";
|
2009-04-21 23:18:09 +00:00
|
|
|
};
|
|
|
|
|
2012-02-09 14:22:13 +00:00
|
|
|
propagatedBuildInputs = [ zlib ];
|
2007-11-11 16:19:00 +00:00
|
|
|
|
2012-02-28 16:26:55 +00: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-21 23:18:09 +00:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.nih.at/libzip;
|
|
|
|
description = "A C library for reading, creating and modifying zip archives";
|
|
|
|
};
|
2007-11-11 16:19:00 +00:00
|
|
|
}
|