-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
46 lines (43 loc) · 1.37 KB
/
flake.nix
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
description = "MetaLambda - contextual modal type theory";
nixConfig = {
extra-substituters = [ "https://cache.iog.io" ];
extra-trusted-public-keys =
[ "hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=" ];
};
inputs = {
haskellNix.url = "github:input-output-hk/haskell.nix/84a8f0e7b2060f647942b60f576692df0caa63b2";
nixpkgs.follows = "haskellNix/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, haskellNix, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [
haskellNix.overlay
(final: prev: {
MetaLambda = final.haskell-nix.cabalProject' {
src = ./.;
compiler-nix-name = "ghc963";
shell.tools = {
cabal = { };
haskell-language-server = { };
hlint = { };
stylish-haskell = { };
};
};
})
];
pkgs = import nixpkgs {
inherit system overlays;
inherit (haskellNix) config;
};
flake = pkgs.MetaLambda.flake { };
in flake // rec {
packages.default = flake.packages."MetaLambda:exe:MetaLambda";
apps.default = {
type = "app";
program = "${packages.default}/bin/MetaLambda";
};
});
}