[Nix-dev] Using nix-shell in messy trees with symlinks and binary files

Rob Vermaas rob.vermaas at gmail.com
Wed Feb 17 14:17:50 CET 2016


> Consideration that nix-shell tries to compute some.. hash.. out of it all,
> sends shivers down my spine.  That's a lot of stuff to hash through.
>
> If this theory is, indeed, correct, what would be the way to make
> nix-shell disregard certain paths from the equation?

You could also use something like:
  src = if lib.inNixShell then null else ./.;

This would prevent nix-shell from actually reading in the src.

Cheers,
Rob


More information about the nix-dev mailing list