I propose postUnpack = "cd $sourceRoot"
That won't break already-unpacked-source-environments If one wants old behaviour, he can do "unpackPhase; cd .." 2015-05-16 19:39 GMT+00:00 Luca Bruno <[email protected]>: > Because you are only looking at your use case. Many use cases involve > having already an src and using nix-shell for getting in the dev > environment. > > On Sat, May 16, 2015 at 6:56 PM, Daniel Hlynskyi <[email protected]> > wrote: > >> Why not? unpackPhase unpacks to current dir, why can't it switch to >> $sourceRoot? >> If I understand nix-shell right, it would be then possible to >> >> nix-shell --command "unpackPhase; configurePhase; buildPhase;" >> >> as kind of alias to nix-build. Currently you are required to cd as >> mentioned in wiki [https://nixos.org/wiki/Debugging_a_Nix_Package] >> >> >
_______________________________________________ nix-dev mailing list [email protected] http://lists.science.uu.nl/mailman/listinfo/nix-dev
