-
Notifications
You must be signed in to change notification settings - Fork 12
Add devenv #208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add devenv #208
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| use devenv |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,4 +17,6 @@ cabal.config | |
| *.hp | ||
| .stack-work/ | ||
| .env | ||
| .direnv/ | ||
| .devenv/ | ||
| dist-newstyle/ | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| { | ||
| "nodes": { | ||
| "devenv": { | ||
| "locked": { | ||
| "dir": "src/modules", | ||
| "lastModified": 1785352168, | ||
| "narHash": "sha256-m/9I5Ai3+wbJuKXtwwaFLG+4Db7Pg2EUYP3ZGLsA7xU=", | ||
| "owner": "cachix", | ||
| "repo": "devenv", | ||
| "rev": "bf3fde552a27d5e41c52c0fcfbf258e396c995bb", | ||
| "type": "github" | ||
| }, | ||
| "original": { | ||
| "dir": "src/modules", | ||
| "owner": "cachix", | ||
| "repo": "devenv", | ||
| "type": "github" | ||
| } | ||
| }, | ||
| "nixpkgs": { | ||
| "inputs": { | ||
| "nixpkgs-src": "nixpkgs-src" | ||
| }, | ||
| "locked": { | ||
| "lastModified": 1785104946, | ||
| "narHash": "sha256-VLSslwCjlsICjyaUfrS7lGMypmO03fzmDAqhD85Ae84=", | ||
| "owner": "cachix", | ||
| "repo": "devenv-nixpkgs", | ||
| "rev": "c946ff36bf193309589932c371bd5ae6653c912e", | ||
| "type": "github" | ||
| }, | ||
| "original": { | ||
| "owner": "cachix", | ||
| "ref": "rolling", | ||
| "repo": "devenv-nixpkgs", | ||
| "type": "github" | ||
| } | ||
| }, | ||
| "nixpkgs-src": { | ||
| "flake": false, | ||
| "locked": { | ||
| "lastModified": 1784783405, | ||
| "narHash": "sha256-4IHyyLgLBdKefkljdKod4IMn023pQiDXAWJA187cmdY=", | ||
| "owner": "NixOS", | ||
| "repo": "nixpkgs", | ||
| "rev": "7525d999cd850b9a488817abc89c75dc733acf17", | ||
| "type": "github" | ||
| }, | ||
| "original": { | ||
| "owner": "NixOS", | ||
| "ref": "nixpkgs-unstable", | ||
| "repo": "nixpkgs", | ||
| "type": "github" | ||
| } | ||
| }, | ||
| "root": { | ||
| "inputs": { | ||
| "devenv": "devenv", | ||
| "nixpkgs": "nixpkgs" | ||
| } | ||
| } | ||
| }, | ||
| "root": "root", | ||
| "version": 7 | ||
| } |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,21 @@ | ||||
| { pkgs, ... }: | ||||
|
|
||||
| { | ||||
| # https://devenv.sh/reference/options/ | ||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
| packages = with pkgs; [ | ||||
| cabal-install | ||||
| ghc | ||||
| haskell-language-server | ||||
| hlint | ||||
| ormolu | ||||
| stack | ||||
| zlib | ||||
| ]; | ||||
|
Comment on lines
+5
to
+13
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @Djojavi What about using the language essentials that devenv provides for Haskell? |
||||
|
|
||||
| enterShell = '' | ||||
| echo "dotenv-hs dev environment loaded" | ||||
| echo "Try: cabal build && cabal test" | ||||
| ''; | ||||
|
|
||||
| languages.haskell.enable = true; | ||||
| } | ||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Djojavi devenv comes with a new feature for auto-loading, so we don't really need to use
direnvanymore!