mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
makeWrapper: throw if there's no targetPackages.runtimeShell
This commit is contained in:
parent
d9be3f9a0a
commit
065b54ffab
@ -971,7 +971,8 @@ with pkgs;
|
||||
makeShellWrapper = makeSetupHook
|
||||
{ deps = [ dieHook ];
|
||||
substitutions = {
|
||||
shell = targetPackages.runtimeShell;
|
||||
# targetPackages.runtimeShell only exists when pkgs == targetPackages (when targetPackages is not __raw)
|
||||
shell = if targetPackages ? runtimeShell then targetPackages.runtimeShell else throw "makeWrapper/makeShellWrapper must be in nativeBuildInputs";
|
||||
};
|
||||
passthru = {
|
||||
tests = tests.makeWrapper;
|
||||
|
Loading…
Reference in New Issue
Block a user