Skip to content

How do I use shellHook in the template? #82

Answered by srid
billksun asked this question in Q&A
Discussion options

You must be logged in to vote

You can use overrideAttrs on the devshell that haskell-flake returns, eg.: https://github.com/Platonic-Systems/mission-control/blob/9acdaa469ebd3c2d6816f8a30c0c217a0da59fe2/nix/flake-module.nix#L84-L91

Furthermore, I may want to run different shell commands depending on the OS platform, how would I do this?

Check on system. eg: https://github.com/srid/nixos-config/blob/cc0bd940c9ff628949ba6b2f65d73b80ffaca1e7/lib.nix#L77-L86

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by billksun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants