add devShell for haskell
This commit is contained in:
parent
967dd5a69c
commit
3f35767016
3 changed files with 14 additions and 0 deletions
|
@ -14,3 +14,8 @@ This repo contains a bunch of handy dev shells that can used on any system that
|
||||||
- can be activated with `nix develop github:adtya/devshell#python`
|
- can be activated with `nix develop github:adtya/devshell#python`
|
||||||
- can also be activated with direnv by adding `use flake github:adtya/devshell#python` to `.envrc`
|
- can also be activated with direnv by adding `use flake github:adtya/devshell#python` to `.envrc`
|
||||||
- additionally, adding `layout pipenv` to `.envrc` will also activate the pipenv shell based on Pipfile and Pipfile.lock
|
- additionally, adding `layout pipenv` to `.envrc` will also activate the pipenv shell based on Pipfile and Pipfile.lock
|
||||||
|
|
||||||
|
### Haskell
|
||||||
|
- makes `ghc`, `haskell-language-server`, `cabal` and `stack` available in path
|
||||||
|
- can be activated with `nix develop github:adtya/devshell#haskell`
|
||||||
|
- can also be activated with direnv by adding `use flake github:adtya/devshell#haskell` to `.envrc`
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
devShells = {
|
devShells = {
|
||||||
go = import ./go.nix { inherit pkgs; };
|
go = import ./go.nix { inherit pkgs; };
|
||||||
python = import ./python.nix { inherit pkgs; };
|
python = import ./python.nix { inherit pkgs; };
|
||||||
|
haskell = import ./haskell.nix { inherit pkgs; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
8
haskell.nix
Normal file
8
haskell.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{ pkgs }: pkgs.mkShell {
|
||||||
|
packages = with pkgs.haskellPackages; [
|
||||||
|
ghc
|
||||||
|
haskell-language-server
|
||||||
|
cabal-install
|
||||||
|
stack
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue