[Nix-dev] $snapshot not evaluating

Tuomas Tynkkynen tuomas.tynkkynen at iki.fi
Thu Feb 4 13:34:26 CET 2016


On 02/04/2016 09:31 AM, stewart mackenzie wrote:
> Hello,
>
>[...]
> Notice $snapshot isn't evaluated.
>
> Is there a way for me to get $snapshot evaluated without copying over
> all the code from nixpkgs yet simply overriding the configureFlags?
> (example code I'd need to copy over
> https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/rustc/generic.nix#L33-L119)


Typically you do something like this:

preConfigure = ''
     configureFlagsArray+=("--local-rust-root=$snapshot")
'';


More information about the nix-dev mailing list