darwin.diskdev_cmds: migrate to use darwin.sourceRelease
This commit is contained in:
@@ -1,15 +1,23 @@
|
||||
{
|
||||
lib,
|
||||
apple-sdk,
|
||||
libutil,
|
||||
mkAppleDerivation,
|
||||
removefile,
|
||||
pkgs,
|
||||
stdenvNoCC,
|
||||
}:
|
||||
|
||||
let
|
||||
Libc = apple-sdk.sourceRelease "Libc";
|
||||
xnu = apple-sdk.sourceRelease "xnu";
|
||||
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.
|
||||
Libc = bootstrapSourceRelease "Libc";
|
||||
xnu = bootstrapSourceRelease "xnu";
|
||||
|
||||
privateHeaders = stdenvNoCC.mkDerivation {
|
||||
name = "diskdev_cmds-deps-private-headers";
|
||||
|
||||
Reference in New Issue
Block a user