git.iko.soy/production-haskell
on master help sign in
24 lines 719 B history raw
1{
2 inputs = {
3 nixpkgs.url = "github:NixOS/nixpkgs";
4 flake-utils.url = "github:numtide/flake-utils";
5 };
7 outputs = { self, flake-utils, nixpkgs }:
8 let
9 supportedSystems =
10 [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" "aarch64-linux" ];
11 compilerVersion = "982";
12 in flake-utils.lib.eachSystem supportedSystems (system:
13 let pkgs = import nixpkgs { inherit system; };
14 in {
15 devShells.default = pkgs.mkShell {
16 buildInputs = with pkgs; [
17 haskell.compiler."ghc${compilerVersion}"
18 (pkgs.haskell-language-server.override {
19 supportedGhcVersions = [ compilerVersion ];
20 })
21 ];
22 };
23 });