darwin.shell_cmds: migrate to use darwin.sourceRelease

This commit is contained in:
Randy Eckenrode
2026-04-18 00:39:06 -04:00
parent 03b82c06f1
commit 895f2f48cd
@@ -1,6 +1,5 @@
{
lib,
apple-sdk,
bison,
clang,
libedit,
@@ -8,13 +7,22 @@
libsbuf,
libutil,
libxo,
pkg-config,
mkAppleDerivation,
pkg-config,
pkgs,
}:
let
f =
pkgs: prev:
if !pkgs.stdenv.hostPlatform.isDarwin || pkgs.stdenv.name == "bootstrap-stage0-stdenv-darwin" then
prev.darwin.sourceRelease
else
f pkgs.stdenv.__bootPackages pkgs;
bootstrapSourceRelease = f pkgs pkgs;
# TODO(reckenrode): Use `sourceRelease` after migration has been merged and all releases updated to the same version.
# nohup requires vproc_priv.h from launchd
launchd = apple-sdk.sourceRelease "launchd";
launchd = bootstrapSourceRelease "launchd";
in
mkAppleDerivation {
releaseName = "shell_cmds";