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
{
description = "horizon-advance";
nixConfig = {
extra-substituters = "https://horizon.cachix.org";
extra-trusted-public-keys = "horizon.cachix.org-1:MeEEDRhRZTgv/FFGCv3479/dmJDfJ82G6kfUDxMSAw0=";
};
inputs = {
get-flake.url = "github:ursi/get-flake";
horizon-core.url = "git+https://gitlab.horizon-haskell.net/package-sets/horizon-core";
lint-utils.url = "git+https://gitlab.nixica.dev/nix/lint-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs =
inputs@
{ self
, flake-utils
, get-flake
, horizon-core
, lint-utils
, nixpkgs
, ...
}:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = import nixpkgs { inherit system; };
in
with pkgs.lib;
with pkgs.writers;
let
overrides = composeManyExtensions [
(import ./overlay.nix { inherit pkgs; })
(import ./configuration.nix { inherit pkgs; })
];
legacyPackages = horizon-core.legacyPackages.${system}.extend overrides;
packages = filterAttrs (_: isDerivation) legacyPackages;
in
{
checks = with lint-utils.outputs.linters.${system}; {
dhall-format = dhall-format { src = self; };
nixpkgs-fmt = nixpkgs-fmt { src = self; find = "flake.nix"; };
};
inherit legacyPackages;
inherit packages;
});
}