bison: explicitly set strictDeps

see the comment
This commit is contained in:
Artturin 2022-05-20 04:40:44 +03:00
parent 9069477be3
commit 62e002d1cd

View file

@ -18,6 +18,11 @@ stdenv.mkDerivation rec {
# Otherwise tests fail due to incorrect unicode symbol oconversion.
configurePlatforms = [ "build" "host" ];
# there's a /bin/sh shebang in bin/yacc which when no strictDeps is patched with the build stdenv shell
# however when cross-compiling it would still be patched with the build stdenv shell which would be wrong
# cannot add bash to buildInputs due to infinite recursion
strictDeps = stdenv.hostPlatform != stdenv.buildPlatform;
nativeBuildInputs = [ m4 perl ] ++ lib.optional stdenv.isSunOS help2man;
propagatedBuildInputs = [ m4 ];