mirror of
https://github.com/NixOS/nix
synced 2025-06-30 07:33:16 +02:00
Make <nix/unpack-channel.nix> a builtin builder
This was the last function using a shell script, so this allows us to get rid of tar, coreutils, bash etc.
This commit is contained in:
parent
e60f6bd4ce
commit
045708db43
9 changed files with 55 additions and 84 deletions
|
@ -3128,6 +3128,8 @@ void DerivationGoal::runChild()
|
|||
builtinFetchurl(drv2, netrcData);
|
||||
else if (drv->builder == "builtin:buildenv")
|
||||
builtinBuildenv(drv2);
|
||||
else if (drv->builder == "builtin:unpack-channel")
|
||||
builtinUnpackChannel(drv2);
|
||||
else
|
||||
throw Error(format("unsupported builtin function '%1%'") % string(drv->builder, 8));
|
||||
_exit(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue