-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathflake.nix
50 lines (38 loc) · 1.07 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
47
48
49
50
{ inputs = {
flake-compat = {
url = "github:edolstra/flake-compat/v1.0.0";
flake = false;
};
flake-utils.url = "github:numtide/flake-utils/v1.0.0";
nixpkgs.url = "github:NixOS/nixpkgs/24.05";
};
outputs = { flake-utils, nixpkgs, ... }:
let
overlay = import ./overlay.nix;
in
flake-utils.lib.eachDefaultSystem (system:
let
config = { };
pkgs =
import nixpkgs { inherit config system; overlays = [ overlay ]; };
in
rec {
packages.default = pkgs.haskellPackages.ada;
apps.default = {
type = "app";
program = "${pkgs.ada}/bin/ada";
};
devShells.default =
pkgs.mkShell {
inputsFrom = [ pkgs.haskellPackages.ada.env ];
packages = [
pkgs.cabal-install
pkgs.ghcid
];
};
}
) // {
overlays.default = overlay;
nixosModules.default = import ./ada.nix;
};
}