This website requires JavaScript.
Explore
Help
Sign in
max
/
nix-super
Watch
1
Star
0
Fork
You've already forked nix-super
0
mirror of
https://github.com/privatevoid-net/nix-super.git
synced
2024-11-23 14:36:16 +02:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
a560124cdf
nix-super
/
corepkgs
/
unpack-channel.sh
5 lines
71 B
Bash
Raw
Normal View
History
Unescape
Escape
* Add a test for nix-channel. * Refactor the nix-channel unpacker a bit.
2012-01-03 03:51:38 +02:00
mkdir
$out
nix-channel improvements "nix-channel --add" now accepts a second argument: the channel name. This allows channels to have a nicer name than (say) nixpkgs_unstable. If no name is given, it defaults to the last component of the URL (with "-unstable" or "-stable" removed). Also, channels are now stored in a profile (/nix/var/nix/profiles/per-user/$USER/channels). One advantage of this is that it allows rollbacks (e.g. if "nix-channel --update" gives an undesirable update).
2012-04-14 19:38:52 +03:00
cd
$out
$bzip2
-d <
$src
|
$tar
xf -
If the (redirected) channel URL contains a version number, use it
2012-04-14 22:05:28 +03:00
mv *
$out
/
$channelName
Reference in a new issue
Copy permalink