···1-{ skawarePackages, pkgs }:
000023with skawarePackages;
4···21 # Empty the default path, which would be "/usr/bin:bin".
22 # It would be set when PATH is empty. This hurts hermeticity.
23 "--with-default-path="
0000000000024 ];
2526 postInstall = ''
···1+{ lib
2+, stdenv
3+, skawarePackages
4+, pkgs
5+}:
67with skawarePackages;
8···25 # Empty the default path, which would be "/usr/bin:bin".
26 # It would be set when PATH is empty. This hurts hermeticity.
27 "--with-default-path="
28+29+ ] ++ lib.optionals (stdenv.buildPlatform.config != stdenv.hostPlatform.config) [
30+ # ./configure: sysdep posixspawnearlyreturn cannot be autodetected
31+ # when cross-compiling. Please manually provide a value with the
32+ # --with-sysdep-posixspawnearlyreturn=yes|no|... option.
33+ #
34+ # posixspawnearlyreturn: `yes` if the target has a broken
35+ # `posix_spawn()` implementation that can return before the
36+ # child has successfully exec'ed. That happens with old glibcs
37+ # and some virtual platforms.
38+ "--with-sysdep-posixspawnearlyreturn=no"
39 ];
4041 postInstall = ''