From bfb0389d6cf2caa6f017f11f9fd9a488713b89f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sat, 25 Feb 2012 15:54:57 +0000 Subject: [PATCH] Disabling NLS for the zip at openoffice builders. I think it breaks the builds, based on the nixpkgs diff for the breakage at http://hydra.nixos.org/build/1964660 . svn path=/nixpkgs/trunk/; revision=32556 --- pkgs/tools/archivers/zip/default.nix | 9 +++++---- pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/archivers/zip/default.nix b/pkgs/tools/archivers/zip/default.nix index e3b48f48325..c7bddfd6de2 100644 --- a/pkgs/tools/archivers/zip/default.nix +++ b/pkgs/tools/archivers/zip/default.nix @@ -1,4 +1,6 @@ -{ stdenv, fetchurl, libnatspec }: +{ stdenv, fetchurl, enableNLS ? true, libnatspec ? null }: + +assert enableNLS -> libnatspec != null; stdenv.mkDerivation { name = "zip-3.0"; @@ -12,9 +14,9 @@ stdenv.mkDerivation { installFlags="-f unix/Makefile prefix=$(out) INSTALL=cp"; - patches = [ ./natspec-gentoo.patch.bz2 ]; + patches = if enableNLS then [ ./natspec-gentoo.patch.bz2 ] else []; - buildInputs = [ libnatspec ]; + buildInputs = if enableNLS then [ libnatspec ] else []; meta = { homepage = http://www.info-zip.org; @@ -22,4 +24,3 @@ stdenv.mkDerivation { maintainer = [ stdenv.lib.maintainers.urkud ]; }; } - diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7b4cf34d948..99fb330bec3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7272,6 +7272,7 @@ let inherit (gnome) GConf ORBit2; neon = neon029; libwpd = libwpd_08; + zip = zip.override { enableNLS = false; }; }; go_oo = callPackage ../applications/office/openoffice/go-oo.nix { @@ -7279,6 +7280,7 @@ let inherit (gnome) GConf ORBit2; neon = neon029; libwpd = libwpd_08; + zip = zip.override { enableNLS = false; }; }; openscad = callPackage ../applications/graphics/openscad {};