[Nix-dev] nix unpack

Lluís Batlle i Rossell viric at viric.name
Sun Jan 29 09:49:05 CET 2012


On Sun, Jan 29, 2012 at 04:13:23AM +0400, Sergey Mironov wrote:
> Hi! Have we got a tool/script which can download derivation's tarball
> into current directory (and unpack it)? Basically, I wish I have a
> tool wich does what 'cabal unpack' does for haskell world..

tar xf `nix-build --no-out-link -A xterm.src /etc/nixos/nixpkgs`

I personally always have a script named 'nix-test' that runs:
 nix-build --no-out-link -A $1 /etc/nixos/nixpkgs

Then I do:   tar xf `nix-test xterm.src`

Regards,
Lluís.


More information about the nix-dev mailing list