-
Notifications
You must be signed in to change notification settings - Fork 13
/
flake.nix
49 lines (49 loc) · 1.58 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
{
description = "Curl Runnings Nix Flake";
inputs = {
nixpkgs.follows = "haskellNix/nixpkgs"; # FLAKE REF
flake-utils.url = github:numtide/flake-utils;
haskellNix = {
url = github:input-output-hk/haskell.nix;
inputs.nixpkgs.follows = "haskellNix/nixpkgs-2111"; # FLAKE REF
};
};
outputs = { self, nixpkgs, flake-utils, haskellNix }:
flake-utils.lib.eachSystem [ "aarch64-darwin" "x86_64-darwin" "x86_64-linux" ]
(system:
let
overlays = [
haskellNix.overlay
(final: prev: {
curlRunnings =
final.haskell-nix.cabalProject' {
src = ./.;
compiler-nix-name = "ghc8107";
shell.tools =
let
idx = { index-state = "2022-02-01T00:00:00Z"; };
in
{
cabal-install = idx;
cabal-plan = idx;
ghcid = idx;
haskell-language-server = idx;
hlint = idx;
hoogle = idx;
hpack = idx;
ormolu = { version = "0.3.1.0"; } // idx; # LATEST BROKEN
};
};
})
];
pkgs = import nixpkgs {
inherit system overlays;
inherit (haskellNix) config;
};
flake = pkgs.curlRunnings.flake { };
in
flake // {
defaultPackage = flake.packages."curl-runnings:exe:curl-runnings";
}
);
}