From c8697fdd049db35ac950527fcfdb8006afae4150 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Tue, 11 Jun 2024 21:50:11 -0700 Subject: [PATCH 1/3] pkgs/top-level/release-attrpaths-superset.nix: add attributes to skip to prevent #319147 --- pkgs/top-level/release-attrpaths-superset.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/top-level/release-attrpaths-superset.nix b/pkgs/top-level/release-attrpaths-superset.nix index a80b40d36060..489c378abf04 100644 --- a/pkgs/top-level/release-attrpaths-superset.nix +++ b/pkgs/top-level/release-attrpaths-superset.nix @@ -52,6 +52,7 @@ let pkgsMusl = true; pkgsStatic = true; pkgsCross = true; + pkgsx86_64Darwin = true; pkgsi686Linux = true; pkgsLinux = true; pkgsExtraHardening = true; @@ -70,9 +71,11 @@ let override = true; __functor = true; __functionArgs = true; + __splicedPackages = true; newScope = true; scope = true; pkgs = true; + test-pkgs = true; buildHaskellPackages = true; buildPackages = true; From 23ce5265d005584386aeed4a7fbb7f4f85db99c1 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Thu, 13 Jun 2024 10:37:16 -0700 Subject: [PATCH 2/3] pkgs/build-support/kernel/make-initrd.nix: fix eval for test on darwin --- pkgs/build-support/kernel/make-initrd.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/build-support/kernel/make-initrd.nix b/pkgs/build-support/kernel/make-initrd.nix index 9c27a142f4b6..5f8d1eee8ce4 100644 --- a/pkgs/build-support/kernel/make-initrd.nix +++ b/pkgs/build-support/kernel/make-initrd.nix @@ -56,7 +56,7 @@ in , prepend ? [] # Whether to wrap the initramfs in a u-boot image. -, makeUInitrd ? stdenvNoCC.hostPlatform.linux-kernel.target == "uImage" +, makeUInitrd ? stdenvNoCC.hostPlatform.linux-kernel.target or "dummy" == "uImage" # If generating a u-boot image, the architecture to use. The default # guess may not align with u-boot's nomenclature correctly, so it can @@ -75,11 +75,9 @@ let toValidStoreName = x: with builtins; lib.concatStringsSep "-" (filter (x: !(isList x)) (split "[^a-zA-Z0-9_=.?-]+" x)); -in stdenvNoCC.mkDerivation rec { +in stdenvNoCC.mkDerivation (rec { inherit name makeUInitrd extension uInitrdArch prepend; - ${if makeUInitrd then "uInitrdCompression" else null} = uInitrdCompression; - builder = ./make-initrd.sh; nativeBuildInputs = [ perl libarchive ] @@ -110,4 +108,6 @@ in stdenvNoCC.mkDerivation rec { contents (lib.range 0 (lib.length contents - 1)); pathsFromGraph = ./paths-from-graph.pl; -} +} // lib.optionalAttrs makeUInitrd { + uInitrdCompression = uInitrdCompression; +}) From 013ade656283d3ef576ac3c00b0352612f2544c2 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Thu, 13 Jun 2024 10:38:40 -0700 Subject: [PATCH 3/3] pkgs/test/stdenv/default.nix: fix eval on darwin --- pkgs/test/stdenv/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/test/stdenv/default.nix b/pkgs/test/stdenv/default.nix index e06759fa28bd..00f1ce90ef3a 100644 --- a/pkgs/test/stdenv/default.nix +++ b/pkgs/test/stdenv/default.nix @@ -99,6 +99,9 @@ let in { + # Disable on Darwin due to assumptions with __bootPackages + __attrsFailEvaluation = stdenv.isDarwin; + # tests for hooks in `stdenv.defaultNativeBuildInputs` hooks = lib.recurseIntoAttrs (import ./hooks.nix { stdenv = bootStdenv; pkgs = earlyPkgs; inherit lib; });