Haskell : Setup flake env.

This commit is contained in:
Dmitry Voronin 2024-03-12 20:36:38 +03:00
parent b6642b4dc9
commit 0d17090037
2 changed files with 28 additions and 1 deletions

View file

@ -41,4 +41,4 @@ I'll merge them together later, when I finish re-visiting.
### Shiny new stuff!
- [ ] Haskell.
- [ ] [Haskell](haskell).

27
haskell/flake.nix Normal file
View file

@ -0,0 +1,27 @@
{
description = "Haskell dev env.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs } @inputs: let
system = "x86_64-linux";
lib = nixpkgs.lib;
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.${system} = {
default = pkgs.mkShell rec {
nativeBuildInputs = with pkgs; [
haskell-language-server
stylish-haskell
ghc
haskellPackages.lsp
];
buildInputs = with pkgs; [
];
};
};
};
}