From a70a76086c2553000497ab21dc371bc296c3e3d4 Mon Sep 17 00:00:00 2001 From: Karn Kallio Date: Tue, 28 Feb 2012 16:26:55 +0000 Subject: [PATCH] Latest version of libzip places zipconf.h where mysqlworkbench cannot find it and so mysqlworkbench does not build. This links it to somewhere mysqlworkbench looks. I think the openoffice build also failed because of this. svn path=/nixpkgs/trunk/; revision=32679 --- pkgs/development/libraries/libzip/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/libzip/default.nix b/pkgs/development/libraries/libzip/default.nix index 0c490c63411a..48ef55892c8f 100644 --- a/pkgs/development/libraries/libzip/default.nix +++ b/pkgs/development/libraries/libzip/default.nix @@ -10,6 +10,12 @@ stdenv.mkDerivation rec { 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";