2012-01-02 20:51:38 -05:00
|
|
|
with import <nix/config.nix>;
|
|
|
|
|
2012-04-14 15:05:28 -04:00
|
|
|
{ name, channelName, src }:
|
2012-01-02 20:51:38 -05:00
|
|
|
|
|
|
|
derivation {
|
2012-04-14 12:38:52 -04:00
|
|
|
system = builtins.currentSystem;
|
2012-01-02 20:51:38 -05:00
|
|
|
builder = shell;
|
|
|
|
args = [ "-e" ./unpack-channel.sh ];
|
2012-04-14 15:05:28 -04:00
|
|
|
inherit name channelName src bzip2 tar tr;
|
2012-01-02 20:51:38 -05:00
|
|
|
PATH = "${nixBinDir}:${coreutils}";
|
2012-05-09 22:14:36 -04:00
|
|
|
|
2012-04-26 10:52:08 -04:00
|
|
|
# No point in doing this remotely.
|
|
|
|
preferLocalBuild = true;
|
2012-05-09 22:14:36 -04:00
|
|
|
|
|
|
|
# Don't build in a chroot because Nix's dependencies may not be there.
|
|
|
|
__noChroot = true;
|
2012-01-02 20:51:38 -05:00
|
|
|
}
|