···93 else if final.isAndroid then "bionic"
94 else if final.isLinux /* default */ then "glibc"
95 else if final.isFreeBSD then "fblibc"
096 else if final.isNetBSD then "nblibc"
97 else if final.isAvr then "avrlibc"
98 else if final.isGhcjs then null
···93 else if final.isAndroid then "bionic"
94 else if final.isLinux /* default */ then "glibc"
95 else if final.isFreeBSD then "fblibc"
96+ else if final.isOpenBSD then "oblibc"
97 else if final.isNetBSD then "nblibc"
98 else if final.isAvr then "avrlibc"
99 else if final.isGhcjs then null
···17# HACK: to ensure parent directories exist. This emulates GNU
18# install’s -D option. No alternative seems to exist in BSD install.
19let
20- binstall = writeShellScript "binstall" ''
21- set -eu
22- for last in "$@"; do true; done
23- mkdir -p $(dirname $last)
24- @out@/bin/xinstall "$@"
25- '';
26in
27mkDerivation {
28 path = "usr.bin/xinstall";
···17# HACK: to ensure parent directories exist. This emulates GNU
18# install’s -D option. No alternative seems to exist in BSD install.
19let
20+ binstall = writeShellScript "binstall" (
21+ builtins.readFile ../../../lib/install-wrapper.sh
22+ + ''
23+ @out@/bin/xinstall "''${args[@]}"
24+ ''
25+ );
26in
27mkDerivation {
28 path = "usr.bin/xinstall";
···16284 choose = platform:
16285 /**/ if platform.isDarwin then 16
16286 else if platform.isFreeBSD then 16
016287 else if platform.isAndroid then 12
16288 else if platform.isLinux then 17
16289 else if platform.isWasm then 16
···21019 then targetPackages.darwin.iosSdkPkgs.libraries or darwin.iosSdkPkgs.libraries
21020 else targetPackages.darwin.LibsystemCross or (throw "don't yet have a `targetPackages.darwin.LibsystemCross for ${stdenv.targetPlatform.config}`")
21021 else if name == "fblibc" then targetPackages.freebsdCross.libc or freebsdCross.libc
021022 else if name == "nblibc" then targetPackages.netbsdCross.libc or netbsdCross.libc
21023 else if name == "wasilibc" then targetPackages.wasilibc or wasilibc
21024 else if name == "relibc" then targetPackages.relibc or relibc
···4074140742 netbsd = callPackage ../os-specific/bsd/netbsd { };
40743 netbsdCross = callPackage ../os-specific/bsd/netbsd {
0000040744 stdenv = crossLibcStdenv;
40745 };
40746
···16284 choose = platform:
16285 /**/ if platform.isDarwin then 16
16286 else if platform.isFreeBSD then 16
16287+ else if platform.isOpenBSD then 18
16288 else if platform.isAndroid then 12
16289 else if platform.isLinux then 17
16290 else if platform.isWasm then 16
···21020 then targetPackages.darwin.iosSdkPkgs.libraries or darwin.iosSdkPkgs.libraries
21021 else targetPackages.darwin.LibsystemCross or (throw "don't yet have a `targetPackages.darwin.LibsystemCross for ${stdenv.targetPlatform.config}`")
21022 else if name == "fblibc" then targetPackages.freebsdCross.libc or freebsdCross.libc
21023+ else if name == "oblibc" then targetPackages.openbsdCross.libc or openbsdCross.libc
21024 else if name == "nblibc" then targetPackages.netbsdCross.libc or netbsdCross.libc
21025 else if name == "wasilibc" then targetPackages.wasilibc or wasilibc
21026 else if name == "relibc" then targetPackages.relibc or relibc
···4074340744 netbsd = callPackage ../os-specific/bsd/netbsd { };
40745 netbsdCross = callPackage ../os-specific/bsd/netbsd {
40746+ stdenv = crossLibcStdenv;
40747+ };
40748+40749+ openbsd = callPackage ../os-specific/bsd/openbsd { };
40750+ openbsdCross = callPackage ../os-specific/bsd/openbsd {
40751 stdenv = crossLibcStdenv;
40752 };
40753