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.
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to