mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +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
|
makeShellWrapper = makeSetupHook
|
||||||
{ deps = [ dieHook ];
|
{ deps = [ dieHook ];
|
||||||
substitutions = {
|
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 = {
|
passthru = {
|
||||||
tests = tests.makeWrapper;
|
tests = tests.makeWrapper;
|
||||||
|
Loading…
Reference in New Issue
Block a user