-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If the (redirected) channel URL contains a version number, use it
- Loading branch information
Showing
3 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
with import <nix/config.nix>; | ||
|
||
{ 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}"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
mkdir $out | ||
cd $out | ||
$bzip2 -d < $src | $tar xf - | ||
mv * $out/$name | ||
mv * $out/$channelName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters