flex: Clean up to use less bash
This commit is contained in:
parent
f83b5e4f7a
commit
25348b27c5
@ -30,10 +30,10 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ bison ];
|
buildInputs = [ bison ];
|
||||||
propagatedBuildInputs = [ m4 ];
|
propagatedBuildInputs = [ m4 ];
|
||||||
|
|
||||||
preConfigure = stdenv.lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
|
preConfigure = stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||||
export ac_cv_func_malloc_0_nonnull=yes
|
"ac_cv_func_malloc_0_nonnull=yes"
|
||||||
export ac_cv_func_realloc_0_nonnull=yes
|
"ac_cv_func_realloc_0_nonnull=yes"
|
||||||
'';
|
];
|
||||||
|
|
||||||
postConfigure = stdenv.lib.optionalString (stdenv.isDarwin || stdenv.isCygwin) ''
|
postConfigure = stdenv.lib.optionalString (stdenv.isDarwin || stdenv.isCygwin) ''
|
||||||
sed -i Makefile -e 's/-no-undefined//;'
|
sed -i Makefile -e 's/-no-undefined//;'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user