summary refs log tree commit diff
path: root/pkgs/development/libraries/libgpg-error
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-08-10 16:38:41 +0200
committerLudovic Courtès <ludo@gnu.org>2012-08-10 16:39:00 +0200
commit13f133f71f349164b74cd518955d02e342504cac (patch)
tree0d86892be42245388046bd78e191b6a565582eca /pkgs/development/libraries/libgpg-error
parent9b70bc6e34345b868aaad2defa426dc331b505d5 (diff)
downloadnixpkgs-13f133f71f349164b74cd518955d02e342504cac.tar
nixpkgs-13f133f71f349164b74cd518955d02e342504cac.tar.gz
nixpkgs-13f133f71f349164b74cd518955d02e342504cac.tar.bz2
nixpkgs-13f133f71f349164b74cd518955d02e342504cac.tar.lz
nixpkgs-13f133f71f349164b74cd518955d02e342504cac.tar.xz
nixpkgs-13f133f71f349164b74cd518955d02e342504cac.tar.zst
nixpkgs-13f133f71f349164b74cd518955d02e342504cac.zip
libgpg-error: re-run `config.status' with Bash on OpenIndiana
Diffstat (limited to 'pkgs/development/libraries/libgpg-error')
-rw-r--r--pkgs/development/libraries/libgpg-error/default.nix17
1 files changed, 15 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libgpg-error/default.nix b/pkgs/development/libraries/libgpg-error/default.nix
index 255057b5134..f7052b90b42 100644
--- a/pkgs/development/libraries/libgpg-error/default.nix
+++ b/pkgs/development/libraries/libgpg-error/default.nix
@@ -1,6 +1,6 @@
-{stdenv, fetchurl}:
+{ stdenv, fetchurl, bash }:
 
-stdenv.mkDerivation rec {
+stdenv.mkDerivation (rec {
   name = "libgpg-error-1.10";
 
   src = fetchurl {
@@ -26,3 +26,16 @@ stdenv.mkDerivation rec {
     platforms = stdenv.lib.platforms.all;
   };
 }
+
+//
+
+(stdenv.lib.optionalAttrs stdenv.isSunOS {
+  # For some reason, /bin/sh on OpenIndiana leads to this at the end of the
+  # `config.status' run:
+  #   ./config.status[1401]: shift: (null): bad number
+  # (See <http://hydra.nixos.org/build/2931046/nixlog/1/raw>.)
+  # Thus, re-run it with Bash.
+  postConfigure =
+    '' ${bash}/bin/sh config.status
+    '';
+}))