mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 12:02:47 +00:00
24 lines
665 B
Nix
24 lines
665 B
Nix
{ stdenv, fetchurl, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libzip-0.11.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.nih.at/libzip/${name}.tar.gz";
|
|
sha256 = "15fwscng2lk0ypg45awk4y2grjqm987frnjcsnbxznfgpckrq7yy";
|
|
};
|
|
|
|
propagatedBuildInputs = [ zlib ];
|
|
|
|
# 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 )
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://www.nih.at/libzip;
|
|
description = "A C library for reading, creating and modifying zip archives";
|
|
};
|
|
}
|