code_adventure/haskell/flake.nix

28 lines
496 B
Nix
Raw Permalink Normal View History

2024-03-12 20:36:38 +03:00
{
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; [
];
};
};
};
}