Skip to content

Commit

Permalink
stdenv.mkDerivation: workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin committed Jan 8, 2023
1 parent 27bc9f4 commit 6e027e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/stdenv/generic/make-derivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6e027e0

Please sign in to comment.