about summary refs log tree commit diff
path: root/corepkgs/unpack-channel.nix
blob: 245430ab0febb89b7d0542687a10e851314e27f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
}