From 0b5107c016080e70d30ccba3afa0f9aa7a90a891 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 14 Apr 2012 21:05:28 +0200 Subject: If the (redirected) channel URL contains a version number, use it --- corepkgs/unpack-channel.nix | 4 ++-- corepkgs/unpack-channel.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'corepkgs') diff --git a/corepkgs/unpack-channel.nix b/corepkgs/unpack-channel.nix index eba957dff4e7..170f3ab07c77 100644 --- a/corepkgs/unpack-channel.nix +++ b/corepkgs/unpack-channel.nix @@ -1,11 +1,11 @@ with import ; -{ name, src }: +{ name, channelName, src }: derivation { system = builtins.currentSystem; builder = shell; args = [ "-e" ./unpack-channel.sh ]; - inherit name src bzip2 tar tr; + inherit name channelName src bzip2 tar tr; PATH = "${nixBinDir}:${coreutils}"; } diff --git a/corepkgs/unpack-channel.sh b/corepkgs/unpack-channel.sh index 0b7d89bc4630..f42b0870ae18 100644 --- a/corepkgs/unpack-channel.sh +++ b/corepkgs/unpack-channel.sh @@ -1,4 +1,4 @@ mkdir $out cd $out $bzip2 -d < $src | $tar xf - -mv * $out/$name +mv * $out/$channelName -- cgit 1.4.1