[Nix-dev] Referring to a path inside ${out}...in a nix expression

2012-06-25 Thread Bryce L Nordgren
Apologies if this is another dumb question, but I think I don't know the proper terms to google. I'm writing an expression (in nixpkgs) for geonetwork-opensource. This is now working as a maven build. The thing I'm putting in $out, for the moment, is the maven repository. This contains all of the

Re: [Nix-dev] Referring to a path inside ${out}...in a nix expression

2012-06-25 Thread Marc Weber
stdenv.mkDerivation { .. } : { ... warfile = ${out}/repository/big/fat/path/geonetwork-opensource-2.6.4.war ... } You have to understand that you can't pass out as input to the same derivation. Why? All inputs yield a hash, the nix/store/ hash. Let's take a very simple example: