|
I want to run some shell commands when entering the dev shell. I use to do this with a Furthermore, I may want to run different shell commands depending on the OS platform, how would I do this? |
Answered by
srid
Jan 19, 2023
Replies: 1 comment
|
You can use
Check on |
0 replies
Answer selected by
billksun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
overrideAttrson the devshell that haskell-flake returns, eg.: https://github.com/Platonic-Systems/mission-control/blob/9acdaa469ebd3c2d6816f8a30c0c217a0da59fe2/nix/flake-module.nix#L84-L91Check on
system. eg: https://github.com/srid/nixos-config/blob/cc0bd940c9ff628949ba6b2f65d73b80ffaca1e7/lib.nix#L77-L86