Newer
Older
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
inputs = {
all-cabal-hashes = {
url = "github:commercialhaskell/all-cabal-hashes?ref=hackage";
flake = false;
};
cardano-base = {
url = "github:input-output-hk/cardano-base";
flake = false;
};
cardano-crypto = {
url = "github:input-output-hk/cardano-crypto";
flake = false;
};
cardano-prelude = {
url = "github:input-output-hk/cardano-prelude";
flake = false;
};
flat = {
url = "github:Quid2/flat";
flake = false;
};
flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs.follows = "nixpkgs";
haskell-flake.url = "github:srid/haskell-flake";
horizon-platform = {
url = "git+https://gitlab.homotopic.tech/horizon/horizon-platform";
};
lint-utils.url = "git+https://gitlab.homotopic.tech/nix/lint-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nothunks = {
url = "github:locallycompact/nothunks";
flake = false;
};
plutus = {
url = "github:input-output-hk/plutus";
flake = false;
};
};
outputs = inputs@{ self, nixpkgs, horizon-platform, flake-utils, lint-utils, ... }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
overlay-ach = final: prev: { all-cabal-hashes = inputs.all-cabal-hashes; };
pkgs = import nixpkgs { inherit system; overlays = [ overlay-ach ]; };
overrides-hp = final: prev:
(horizon-platform.overrides.${system}.ghc942 final prev)
// (import ./overlay.nix { inherit inputs pkgs; } final prev);
hp = pkgs.haskell.packages.ghc942.override {
overrides = overrides-hp;
};
hp' = pkgs.lib.filterAttrs
(n: v: v != null
&& builtins.typeOf v == "set"
&& pkgs.lib.hasAttr "type" v
&& v.type == "derivation"
&& v.meta.broken == false)
hp;
in
{
checks = {
nixpkgs-fmt = lint-utils.outputs.linters.x86_64-linux.nixpkgs-fmt ./.;
};
overrides.ghc942 = overrides-hp;
packages = hp';
});
}