You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Temporary files should be created during devShell initialization.
nix-env --version output
nix-env (Nix) 2.10.3
Additional context
The trivial example above uses buildCommand with stdenv.mkDerivation, but the same issue occurs with (unpack|build|install|...)Phase definition, and even with a direct derivation { ... }.
Defining the installable as devShells = ... in the flake has the same behavior as well.
The text was updated successfully, but these errors were encountered:
It looks like nix-shell has custom code to handle this (currently here but originally committed in 08355643a). It doesn't seem to check if structured attrs are in use prior to setting env vars either, unlike local-derivation-goal.cc, so I'm not sure if that's a bug or not in nix-shell
Describe the bug
Derivations that use
passAsFile
don't have access to those paths innix-command
nix develop
mode.Steps To Reproduce
Expected behavior
Temporary files should be created during devShell initialization.
nix-env --version
outputAdditional context
The trivial example above uses
buildCommand
withstdenv.mkDerivation
, but the same issue occurs with(unpack|build|install|...)Phase
definition, and even with a directderivation { ... }
.Defining the installable as
devShells = ...
in the flake has the same behavior as well.The text was updated successfully, but these errors were encountered: