libgpg-error: re-run `config.status' with Bash on OpenIndiana

This commit is contained in:
Ludovic Courtès 2012-08-10 16:38:41 +02:00
parent 9b70bc6e34
commit 13f133f71f

View File

@ -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
'';
}))