From 72e4be65cca54964bfb7d808a4db74ca04dd8983 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 21 Mar 2013 11:01:16 +0100 Subject: [PATCH 01/15] mini-httpd: update to version 1.3 --- pkgs/servers/http/mini-httpd/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/http/mini-httpd/default.nix b/pkgs/servers/http/mini-httpd/default.nix index f853b3ebacc7..5cdff23d0a3a 100644 --- a/pkgs/servers/http/mini-httpd/default.nix +++ b/pkgs/servers/http/mini-httpd/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchurl, boostHeaders }: stdenv.mkDerivation rec { - name = "mini-httpd-1.2"; + name = "mini-httpd-1.3"; src = fetchurl { url = "mirror://savannah/mini-httpd/${name}.tar.gz"; - sha256 = "1547312rg2phxwny9vm1bkyid251n7wy4p1mgs6f5yq6ypwrsr6p"; + sha256 = "16n33hyp3fcjvd71yrny3ym3kqvxr1jy2hh9wgf6b7zjri3gfak3"; }; buildInputs = [ boostHeaders ]; From 75551477ce49ff3d0631b46fea94a278bbfcc793 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 21 Mar 2013 11:15:42 +0100 Subject: [PATCH 02/15] haskell-active: update to version 0.1.0.4 --- pkgs/development/libraries/haskell/active/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/haskell/active/default.nix b/pkgs/development/libraries/haskell/active/default.nix index 19afa5ab75e6..209341e22e76 100644 --- a/pkgs/development/libraries/haskell/active/default.nix +++ b/pkgs/development/libraries/haskell/active/default.nix @@ -4,13 +4,12 @@ cabal.mkDerivation (self: { pname = "active"; - version = "0.1.0.3"; - sha256 = "0jarc270z6raak1vz30jy2gl0pkj9a2x3ib5hq7vsl2ljbvbgyqi"; + version = "0.1.0.4"; + sha256 = "0f4bgx7l9vx2kywl87zpxpjbfix79lp8chf6xzfpmh4wrbmfgi1s"; buildDepends = [ newtype semigroupoids semigroups vectorSpace ]; testDepends = [ newtype QuickCheck semigroupoids semigroups vectorSpace ]; - jailbreak = true; meta = { description = "Abstractions for animation"; license = self.stdenv.lib.licenses.bsd3; From 53b329cd9d952a606536b7df8a103cdd7784259a Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 21 Mar 2013 11:15:42 +0100 Subject: [PATCH 03/15] haskell-bytestring-lexing: update to version 0.4.2 --- .../libraries/haskell/bytestring-lexing/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/bytestring-lexing/default.nix b/pkgs/development/libraries/haskell/bytestring-lexing/default.nix index 2de7eec8eb5a..77bf20f3d817 100644 --- a/pkgs/development/libraries/haskell/bytestring-lexing/default.nix +++ b/pkgs/development/libraries/haskell/bytestring-lexing/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "bytestring-lexing"; - version = "0.4.0"; - sha256 = "1lww38rab9k8drndqkg306kiq6663i89sq6l1bvjv6cs13acc8wr"; + version = "0.4.2"; + sha256 = "0s9rip1ik7f29n2i88277vhy7dqhc2bb5bb9l6fd47disb78ic9h"; buildTools = [ alex ]; meta = { homepage = "http://code.haskell.org/~wren/"; From c06acb1bfb491da32182f9d63e7998c9abe588a7 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 21 Mar 2013 11:15:42 +0100 Subject: [PATCH 04/15] haskell-diagrams-contrib: update to version 0.6.0.4 --- pkgs/development/libraries/haskell/diagrams/contrib.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/diagrams/contrib.nix b/pkgs/development/libraries/haskell/diagrams/contrib.nix index 3ecfe2db8527..2e5c97d07cc5 100644 --- a/pkgs/development/libraries/haskell/diagrams/contrib.nix +++ b/pkgs/development/libraries/haskell/diagrams/contrib.nix @@ -5,8 +5,8 @@ cabal.mkDerivation (self: { pname = "diagrams-contrib"; - version = "0.6.0.3"; - sha256 = "0j0wmf2nksqh3rqmzyw468bp25zikc5icif5f3rfi1v06ghsk0i5"; + version = "0.6.0.4"; + sha256 = "190wn56bmrpbijsxf793xbjy1a4rci3vj40ri6i2dv3an6p0ka0q"; buildDepends = [ colour dataDefault diagramsLib forceLayout lens mtl vectorSpace ]; From fda16ef2321c73612538fc0e4f73c34392a36b2e Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 21 Mar 2013 11:15:42 +0100 Subject: [PATCH 05/15] haskell-filestore: update to version 0.6.0.1 --- .../libraries/haskell/filestore/default.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/haskell/filestore/default.nix b/pkgs/development/libraries/haskell/filestore/default.nix index 5e93300b23cb..04321d34ffa1 100644 --- a/pkgs/development/libraries/haskell/filestore/default.nix +++ b/pkgs/development/libraries/haskell/filestore/default.nix @@ -4,14 +4,10 @@ cabal.mkDerivation (self: { pname = "filestore"; - version = "0.6"; - sha256 = "1bmsqxrkiqw791h0xwasry3jm56rjsyvl9l5r78209bhiv5v6xk0"; - isLibrary = true; - isExecutable = true; - buildDepends = [ - Diff filepath HUnit mtl parsec split time utf8String xml - ]; - jailbreak = true; + version = "0.6.0.1"; + sha256 = "1la30bimcjngcv5dyx1a9x8lr8c4zs0dp4kzh8y5mjf8snky1avf"; + buildDepends = [ Diff filepath parsec split time utf8String xml ]; + testDepends = [ Diff filepath HUnit mtl time ]; doCheck = false; meta = { description = "Interface for versioning file stores"; From bbc516c59e42759201e998a8aad8546d8c656a09 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 21 Mar 2013 11:15:42 +0100 Subject: [PATCH 06/15] haskell-gitit: update to version 0.10.3.1 --- pkgs/development/libraries/haskell/gitit/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/gitit/default.nix b/pkgs/development/libraries/haskell/gitit/default.nix index 1c7dfdd10e10..9213c534fa3d 100644 --- a/pkgs/development/libraries/haskell/gitit/default.nix +++ b/pkgs/development/libraries/haskell/gitit/default.nix @@ -7,8 +7,8 @@ cabal.mkDerivation (self: { pname = "gitit"; - version = "0.10.3"; - sha256 = "1hz4ddym2vn01nd22gb995dya48fzc7nsmsqywdc8hjczmn93qyg"; + version = "0.10.3.1"; + sha256 = "1sm6rryfyqr0nd4flbc5d520xyw2ajnkylvqf4fi4dhl6fnbpam5"; isLibrary = true; isExecutable = true; buildDepends = [ From 95961786c7859fca2980848f5a78b6b0d3cf8c3e Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 21 Mar 2013 11:15:42 +0100 Subject: [PATCH 07/15] haskell-libxml-sax: update to version 0.7.4 --- pkgs/development/libraries/haskell/libxml-sax/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/libxml-sax/default.nix b/pkgs/development/libraries/haskell/libxml-sax/default.nix index b41ca8dfa543..afdd782fe094 100644 --- a/pkgs/development/libraries/haskell/libxml-sax/default.nix +++ b/pkgs/development/libraries/haskell/libxml-sax/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self: { pname = "libxml-sax"; - version = "0.7.3"; - sha256 = "1514ix5n8y1dwjdm0kmr17fdigc0ic89gzwdvfgh542sjm11100r"; + version = "0.7.4"; + sha256 = "1vbxrmxxb6a58hd6dd81kz8fh198jkvwv4gxzbbfw44170946c0z"; buildDepends = [ text xmlTypes ]; extraLibraries = [ libxml2 ]; pkgconfigDepends = [ libxml2 ]; From e4fd98a2ef4482ab9544b370112c578edd00f03e Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 21 Mar 2013 11:15:42 +0100 Subject: [PATCH 08/15] haskell-persistent-template: update to version 1.1.3.1 --- .../libraries/haskell/persistent-template/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/haskell/persistent-template/default.nix b/pkgs/development/libraries/haskell/persistent-template/default.nix index ae2245f73c99..396f51f69cb7 100644 --- a/pkgs/development/libraries/haskell/persistent-template/default.nix +++ b/pkgs/development/libraries/haskell/persistent-template/default.nix @@ -4,8 +4,8 @@ cabal.mkDerivation (self: { pname = "persistent-template"; - version = "1.1.3"; - sha256 = "1jvr71qfjv2f4vx4xbz78x5a325zkdpg2qvcbglizz10xwrm5j9d"; + version = "1.1.3.1"; + sha256 = "0171x8mv3ff9ppllkp3mgpwa8p1zg3y6fykq70z9h0hx1ny0407p"; buildDepends = [ aeson monadControl persistent text transformers ]; testDepends = [ aeson hspec persistent QuickCheck text ]; meta = { From 899367760726d33e883d7428acffff72db3a0c02 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Thu, 21 Mar 2013 11:15:43 +0100 Subject: [PATCH 09/15] haskell-transformers-compat: update to version 0.1.1.1 --- .../libraries/haskell/transformers-compat/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/haskell/transformers-compat/default.nix b/pkgs/development/libraries/haskell/transformers-compat/default.nix index d36ace0eb299..f3120a61f201 100644 --- a/pkgs/development/libraries/haskell/transformers-compat/default.nix +++ b/pkgs/development/libraries/haskell/transformers-compat/default.nix @@ -2,13 +2,13 @@ cabal.mkDerivation (self: { pname = "transformers-compat"; - version = "0.1"; - sha256 = "100xw00h2l6iipg6lq5bbncpil3bl6w3frak99klpi8gn6ihd8ah"; + version = "0.1.1.1"; + sha256 = "0i0bcfmqsnqa8fyp81virr5bh3hk23261xyx28jcfamrc18ly9ij"; buildDepends = [ transformers ]; noHaddock = true; meta = { homepage = "http://github.com/ekmett/transformers-compat/"; - description = "Lenses, Folds and Traversals"; + description = "A small compatibility shim exposing the new types from transformers 0.3 to older Haskell platforms."; license = self.stdenv.lib.licenses.bsd3; platforms = self.ghc.meta.platforms; }; From d69e680035775ada41ff043a07652d79cf1a8fd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 21 Mar 2013 13:08:19 +0100 Subject: [PATCH 10/15] glibc 2.17: Reinstate support for cross-GNU builds. --- .../libraries/glibc/2.17/common.nix | 22 ++++++++++++++----- .../libraries/glibc/2.17/default.nix | 8 +++---- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/pkgs/development/libraries/glibc/2.17/common.nix b/pkgs/development/libraries/glibc/2.17/common.nix index 3006ff490136..fb4083066de5 100644 --- a/pkgs/development/libraries/glibc/2.17/common.nix +++ b/pkgs/development/libraries/glibc/2.17/common.nix @@ -3,7 +3,7 @@ cross: -{ name, fetchurl, stdenv, installLocales ? false +{ name, fetchurl, fetchgit ? null, stdenv, installLocales ? false , gccCross ? null, kernelHeaders ? null , machHeaders ? null, hurdHeaders ? null, libpthreadHeaders ? null , mig ? null @@ -118,16 +118,26 @@ stdenv.mkDerivation ({ # Remove the `gccCross' attribute so that the *native* glibc store path # doesn't depend on whether `gccCross' is null or not. -// (removeAttrs args [ "gccCross" "fetchurl" ]) // +// (removeAttrs args [ "gccCross" "fetchurl" "fetchgit" ]) // { name = name + "-${version}" + stdenv.lib.optionalString (cross != null) "-${cross.config}"; - src = fetchurl { - url = "mirror://gnu/glibc/glibc-${version}.tar.gz"; - sha256 = "0ym3zk9ii64279wgw7pw9xkbxczy2ci7ka6mnfs05rhlainhicm3"; - }; + src = + if hurdHeaders != null + then fetchgit { + # Shamefully the "official" glibc won't build on GNU, so use the one + # maintained by the Hurd folks, `tschwinge/Roger_Whittaker' branch. + # See . + url = "git://git.sv.gnu.org/hurd/glibc.git"; + sha256 = "cecec9dd5a2bafc875c56b058b6d7628a22b250b53747513dec304f31ffdb82d"; + rev = "d3cdecf18e6550b0984a42b43ed48c5fb26501e1"; + } + else fetchurl { + url = "mirror://gnu/glibc/glibc-${version}.tar.gz"; + sha256 = "0ym3zk9ii64279wgw7pw9xkbxczy2ci7ka6mnfs05rhlainhicm3"; + }; # Remove absolute paths from `configure' & co.; build out-of-tree. preConfigure = '' diff --git a/pkgs/development/libraries/glibc/2.17/default.nix b/pkgs/development/libraries/glibc/2.17/default.nix index 0a0752570f32..1985790e9a1f 100644 --- a/pkgs/development/libraries/glibc/2.17/default.nix +++ b/pkgs/development/libraries/glibc/2.17/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, kernelHeaders +{ stdenv, fetchurl, fetchgit, kernelHeaders , machHeaders ? null, hurdHeaders ? null, libpthreadHeaders ? null , mig ? null , installLocales ? true @@ -18,8 +18,8 @@ in + stdenv.lib.optionalString (hurdHeaders != null) "-hurd" + stdenv.lib.optionalString debugSymbols "-debug"; - inherit fetchurl stdenv kernelHeaders installLocales profilingLibraries - gccCross; + inherit fetchurl fetchgit stdenv kernelHeaders installLocales + profilingLibraries gccCross; builder = ./builder.sh; @@ -56,7 +56,7 @@ in (if hurdHeaders != null then rec { - inherit machHeaders hurdHeaders libpthreadHeaders mig; + inherit machHeaders hurdHeaders libpthreadHeaders mig fetchgit; propagatedBuildInputs = [ machHeaders hurdHeaders libpthreadHeaders ]; From c8ff101724a7e290c2e76b33f4dcdf2e3b5c7430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 21 Mar 2013 13:25:51 +0100 Subject: [PATCH 11/15] glibc 2.17: Make the `fetchgit' argument optional. --- pkgs/development/libraries/glibc/2.17/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/glibc/2.17/default.nix b/pkgs/development/libraries/glibc/2.17/default.nix index 1985790e9a1f..b6d91c932db8 100644 --- a/pkgs/development/libraries/glibc/2.17/default.nix +++ b/pkgs/development/libraries/glibc/2.17/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, fetchgit, kernelHeaders +{ stdenv, fetchurl, fetchgit ? null, kernelHeaders , machHeaders ? null, hurdHeaders ? null, libpthreadHeaders ? null , mig ? null , installLocales ? true From 1dbd3a55c4790394ecf43fc8f3b2442856df8241 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Thu, 21 Mar 2013 13:56:33 +0100 Subject: [PATCH 12/15] libv8-rubygem: Implemented a very depressing workaround that allows scons to build libv8.a, it's ugly but it works --- .../development/interpreters/ruby/patches.nix | 29 +++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/ruby/patches.nix b/pkgs/development/interpreters/ruby/patches.nix index 10b0b2023877..c4da956b57c8 100644 --- a/pkgs/development/interpreters/ruby/patches.nix +++ b/pkgs/development/interpreters/ruby/patches.nix @@ -1,5 +1,5 @@ { fetchurl, writeScript, ruby, ncurses, sqlite, libxml2, libxslt, libffi -, zlib, libuuid, gems, jdk, python }: +, zlib, libuuid, gems, jdk, python, stdenv }: let @@ -15,7 +15,32 @@ in { sup = { buildInputs = [ gems.ncursesw ]; }; - libv8 = { buildInputs = [ python ]; }; + libv8 = { + # This fix is needed to fool scons, which clears the environment by default. + # It's ugly, but it works. + # + # We create a gcc wrapper wrapper, which reexposes the environment variables + # that scons hides. Furthermore, they treat warnings as errors causing the + # build to fail, due to an unused variable. + # + # Finally, we must set CC and AR explicitly to allow scons to find the + # compiler and archiver + + preBuild = '' + cat > $TMPDIR/g++ < Date: Thu, 21 Mar 2013 14:11:58 +0100 Subject: [PATCH 13/15] Allow appnames with spaces everywhere --- pkgs/development/mobile/androidenv/build-app.nix | 7 ++++--- pkgs/development/mobile/titaniumenv/build-app.nix | 8 ++++++-- pkgs/development/mobile/xcodeenv/build-app.nix | 7 ++++--- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/pkgs/development/mobile/androidenv/build-app.nix b/pkgs/development/mobile/androidenv/build-app.nix index 3f8af65f3bd8..cf1d1fce50f0 100644 --- a/pkgs/development/mobile/androidenv/build-app.nix +++ b/pkgs/development/mobile/androidenv/build-app.nix @@ -13,7 +13,8 @@ let androidsdkComposition = androidsdk { inherit platformVersions useGoogleAPIs; }; in stdenv.mkDerivation { - inherit name src; + name = stdenv.lib.replaceChars [" "] [""] name; + inherit src; ANDROID_HOME = "${androidsdkComposition}/libexec/android-sdk-${platformName}"; @@ -36,9 +37,9 @@ stdenv.mkDerivation { installPhase = '' mkdir -p $out - mv bin/*-${if release then "release" else "debug"}.apk $out + mv "bin/*-${if release then "release" else "debug"}.apk" $out mkdir -p $out/nix-support - echo "file binary-dist $(echo $out/*.apk)" > $out/nix-support/hydra-build-products + echo "file binary-dist \"$(echo $out/*.apk)\"" > $out/nix-support/hydra-build-products ''; } diff --git a/pkgs/development/mobile/titaniumenv/build-app.nix b/pkgs/development/mobile/titaniumenv/build-app.nix index 8fe9846c15af..0d35e6c3c2a6 100644 --- a/pkgs/development/mobile/titaniumenv/build-app.nix +++ b/pkgs/development/mobile/titaniumenv/build-app.nix @@ -110,13 +110,17 @@ stdenv.mkDerivation { if target == "android" then ''cp $(ls build/android/bin/*.apk | grep -v '\-unsigned.apk') $out'' else if target == "iphone" && release then - "cp -av build/iphone/build/* $out" + '' + cp -av build/iphone/build/* $out + mkdir -p $out/nix-support + echo "file binary-dist \"$(echo $out/Release-iphoneos/*.ipa)\"" > $out/nix-support/hydra-build-products + '' else if target == "iphone" then "" else throw "Target: ${target} is not supported!"} ${if target == "android" then '' mkdir -p $out/nix-support - echo "file binary-dist $(ls $out/*.apk)" > $out/nix-support/hydra-build-products + echo "file binary-dist \"$(ls $out/*.apk)\"" > $out/nix-support/hydra-build-products '' else ""} ''; diff --git a/pkgs/development/mobile/xcodeenv/build-app.nix b/pkgs/development/mobile/xcodeenv/build-app.nix index 535ec0992c13..ac6bbc7f282d 100644 --- a/pkgs/development/mobile/xcodeenv/build-app.nix +++ b/pkgs/development/mobile/xcodeenv/build-app.nix @@ -44,7 +44,8 @@ let deleteKeychain = "security delete-keychain $keychainName"; in stdenv.mkDerivation { - inherit name src; + name = stdenv.lib.replaceChars [" "] [""] name; + inherit src; buildInputs = [ xcodewrapper ]; buildPhase = '' ${stdenv.lib.optionalString release '' @@ -79,11 +80,11 @@ stdenv.mkDerivation { ${stdenv.lib.optionalString release '' ${stdenv.lib.optionalString generateIPA '' # Produce an IPA file - xcrun -sdk iphoneos PackageApplication -v $out/*.app -o $out/${name}.ipa + xcrun -sdk iphoneos PackageApplication -v $out/*.app -o "$out/${name}.ipa" # Add IPA to Hydra build products mkdir -p $out/nix-support - echo "file binary-dist $(echo $out/*.ipa)" > $out/nix-support/hydra-build-products + echo "file binary-dist \"$(echo $out/*.ipa)\"" > $out/nix-support/hydra-build-products ''} # Delete our temp keychain From 770741b5b44cd13b12c2f0219c0c6b6a2e3a1eb5 Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Thu, 21 Mar 2013 14:21:20 +0100 Subject: [PATCH 14/15] androidenv: fix error with obsolete quotation --- pkgs/development/mobile/androidenv/build-app.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/mobile/androidenv/build-app.nix b/pkgs/development/mobile/androidenv/build-app.nix index cf1d1fce50f0..8b770ede0fc7 100644 --- a/pkgs/development/mobile/androidenv/build-app.nix +++ b/pkgs/development/mobile/androidenv/build-app.nix @@ -37,7 +37,7 @@ stdenv.mkDerivation { installPhase = '' mkdir -p $out - mv "bin/*-${if release then "release" else "debug"}.apk" $out + mv bin/*-${if release then "release" else "debug"}.apk $out mkdir -p $out/nix-support echo "file binary-dist \"$(echo $out/*.apk)\"" > $out/nix-support/hydra-build-products From 31c513d4b75d6202feaba4b185f01efcff7e4c7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 21 Mar 2013 14:26:50 +0100 Subject: [PATCH 15/15] gawk: Remove now-unneeded Cygwin patch. --- pkgs/tools/text/gawk/cygwin-identifiers.patch | 75 ------------------- pkgs/tools/text/gawk/default.nix | 2 +- 2 files changed, 1 insertion(+), 76 deletions(-) delete mode 100644 pkgs/tools/text/gawk/cygwin-identifiers.patch diff --git a/pkgs/tools/text/gawk/cygwin-identifiers.patch b/pkgs/tools/text/gawk/cygwin-identifiers.patch deleted file mode 100644 index baff9b55481d..000000000000 --- a/pkgs/tools/text/gawk/cygwin-identifiers.patch +++ /dev/null @@ -1,75 +0,0 @@ -This patch fixes compilation on Windows, where some of the identifiers -would clash. - -commit 5a0b7f9953f24dc034eca4052214da49fbad8bd0 -Author: Arnold D. Robbins -Date: Fri Jul 29 13:25:57 2011 +0300 - - Fix DJGPP problem with libsigsegv. - -diff --git a/builtin.c b/builtin.c -index 4d87592..941f5ad 100644 ---- a/builtin.c -+++ b/builtin.c -@@ -605,7 +605,7 @@ format_tree( - NODE *arg; - long fw, prec, argnum; - int used_dollar; -- int lj, alt, big, bigbig, small, have_prec, need_format; -+ int lj, alt, big_flag, bigbig_flag, small_flag, have_prec, need_format; - long *cur = NULL; - uintmax_t uval; - int sgn; -@@ -725,7 +725,7 @@ format_tree( - signchar = FALSE; - zero_flag = FALSE; - quote_flag = FALSE; -- lj = alt = big = bigbig = small = FALSE; -+ lj = alt = big_flag = bigbig_flag = small_flag = FALSE; - fill = sp; - cp = cend; - chbuf = lchbuf; -@@ -907,7 +907,7 @@ check_pos: - goto retry; - #endif - case 'l': -- if (big) -+ if (big_flag) - break; - else { - static short warned = FALSE; -@@ -921,10 +921,10 @@ check_pos: - goto out; - } - } -- big = TRUE; -+ big_flag = TRUE; - goto retry; - case 'L': -- if (bigbig) -+ if (bigbig_flag) - break; - else { - static short warned = FALSE; -@@ -938,10 +938,10 @@ check_pos: - goto out; - } - } -- bigbig = TRUE; -+ bigbig_flag = TRUE; - goto retry; - case 'h': -- if (small) -+ if (small_flag) - break; - else { - static short warned = FALSE; -@@ -955,7 +955,7 @@ check_pos: - goto out; - } - } -- small = TRUE; -+ small_flag = TRUE; - goto retry; - case 'c': - need_format = FALSE; diff --git a/pkgs/tools/text/gawk/default.nix b/pkgs/tools/text/gawk/default.nix index 29b3936a0ba9..eba1dc2ac7fd 100644 --- a/pkgs/tools/text/gawk/default.nix +++ b/pkgs/tools/text/gawk/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "04vd0axif762mf781pj3days6ilv2333b9zi9c50y5mma66g5q91"; }; - patches = stdenv.lib.optional stdenv.isCygwin [ ./cygwin-identifiers.patch ]; + patches = []; doCheck = !stdenv.isCygwin; # XXX: `test-dup2' segfaults on Cygwin 6.1