mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
663c06e8cd
The dependencies of the corepkgs are not necessarily in the chroot (or in the Nix store), so don't build them in a chroot.
17 lines
413 B
Nix
17 lines
413 B
Nix
with import <nix/config.nix>;
|
|
|
|
{ name, channelName, src }:
|
|
|
|
derivation {
|
|
system = builtins.currentSystem;
|
|
builder = shell;
|
|
args = [ "-e" ./unpack-channel.sh ];
|
|
inherit name channelName src bzip2 tar tr;
|
|
PATH = "${nixBinDir}:${coreutils}";
|
|
|
|
# No point in doing this remotely.
|
|
preferLocalBuild = true;
|
|
|
|
# Don't build in a chroot because Nix's dependencies may not be there.
|
|
__noChroot = true;
|
|
}
|