-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathflake.nix
More file actions
27 lines (27 loc) · 1 KB
/
flake.nix
File metadata and controls
27 lines (27 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
description = "Basic Haskell flake";
inputs.haskell-nix.url = "github:input-output-hk/haskell.nix";
inputs.nixpkgs.follows = "haskell-nix/nixpkgs-2511";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = inputs@{ self, nixpkgs, flake-utils, haskell-nix, ... }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
overlays = [
haskell-nix.overlay
(final: prev: {
myHaskellProject =
final.haskell-nix.hix.project {
src = ./.;
compiler-nix-name = "ghc912";
evalSystem = "x86_64-linux";
crossPlatforms = p: [ p.aarch64-multiplatform ];
shell.tools.cabal = "latest";
shell.tools.haskell-language-server = "latest";
shell.withHoogle = false;
};
})
];
pkgs = import nixpkgs { inherit system overlays; inherit (haskell-nix) config; };
in
pkgs.myHaskellProject.flake { });
}