From 6e027e026741cc3c4bacf921dac02a15df4876cf Mon Sep 17 00:00:00 2001 From: Artturin Date: Sun, 8 Jan 2023 21:50:15 +0200 Subject: [PATCH] stdenv.mkDerivation: workaround --- pkgs/stdenv/generic/make-derivation.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/stdenv/generic/make-derivation.nix b/pkgs/stdenv/generic/make-derivation.nix index bb40abfc911b2..e1d3e434fe0b9 100644 --- a/pkgs/stdenv/generic/make-derivation.nix +++ b/pkgs/stdenv/generic/make-derivation.nix @@ -210,7 +210,10 @@ let # > pkgsCross.aarch64-multiplatform.buildPackages.__splicedPackages.perl.mini.__spliced # { targetTarget = «derivation ...perl-aarch64-unknown-linux-gnu...»; } if (!dep ? __spliced) then - lib.warn "${dep.name} in ${attrs.name or attrs.pname}'s ${listName} not executable on build" dep + # workaround overrideAttrs not preserving splicing https://github.com/NixOS/nixpkgs/issues/132651 + if (!dep ? pythonSitePackages && !dep ? provides && !dep ? pythonAttr) then + lib.warn "${dep.name} in ${attrs.name or attrs.pname}'s ${listName} not executable on build" dep + else dep else dep else dep;