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
how would i go about combining shells? I tried the below but it doesn't work, why? Should I use modules?
For example I'd like to do:
devshells={default={devshell={name="My main shell";packagesFrom=[config.devShells.haskellconfig.devShells.utils];};};utils={devshell.name="My subproject shell";commands=[{name="my-util";command="${pkgs.utils}/bin/my-util";}];};}
defining an utils shell with the devshell module and combining it with a classical derivation based shell config.devShells.haskell that for example is created by some library code and I don't define it by myself.
Or combine two or more shells of whatever flavor together, best getting information about conflicts.
In the example above, the resulting default shell indeed has all the commands coming from the haskell shell, but the my-util commad is missing from it. Why?
Given that devshells use module system, it's possible to share devshells by sharing modules. BUT I would like to understand why the above doesn't include my-utils inside shell? Together with #310 where I ask about the packages argument.
The text was updated successfully, but these errors were encountered:
Hey,
how would i go about combining shells? I tried the below but it doesn't work, why? Should I use modules?
For example I'd like to do:
defining an
utils
shell with thedevshell
module and combining it with a classical derivation based shellconfig.devShells.haskell
that for example is created by some library code and I don't define it by myself.Or combine two or more shells of whatever flavor together, best getting information about conflicts.
In the example above, the resulting
default
shell indeed has all the commands coming from thehaskell
shell, but themy-util
commad is missing from it. Why?Given that devshells use module system, it's possible to share devshells by sharing modules. BUT I would like to understand why the above doesn't include
my-utils
inside shell? Together with #310 where I ask about thepackages
argument.The text was updated successfully, but these errors were encountered: