Nix shell #13
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/flake-compat#13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Provide a way to create a shell.nix with the same behavior as nix develop
With
nix develop
behaviour, you mean setting the output environment variables tooutputs/<name>
?I mostly mean installing all dependencies, and setting env variables, so make for example can build the local project via the makefile in the same folder (if it's a make project)
At the moment, an additional
shell.nix
file has to be added with the following content:In my case I needed to put:
(the solution proposed by zimbatm gave me some errors)
However, while now I can use both
nix develop
andnix shell
,direnv
is not really successful to load my environment fully. Indeed, it does export the shell variables given inshellHook
, but it does not run theecho
commands (useful to provide some documentation), nor thealias
command. I tried bothuse nix
anduse flake
, and both fail to load thealias
/echo
commands (note however thatalias
can be replaced with a script, and that this is more portable across shells, so it is not too much of a problem for now).Hey, I'm not finding
overrideAttrs
on the.shellNix
. Any way around that?