|
12 | 12 | # TODO enable kupo supported OS's
|
13 | 13 | systems = [ "x86_64-linux" ];
|
14 | 14 | ciSystems = systems;
|
15 |
| - hs-kupo = { lib, pkgs, inputs, ... }: lib.iogx.mkHaskellProject { |
16 |
| - cabalProject = pkgs.haskell-nix.cabalProject' |
17 |
| - { |
18 |
| - src = pkgs.haskell-nix.haskellLib.cleanSourceWith { |
19 |
| - name = "kupo-src"; |
20 |
| - src = inputs.kupo; |
21 |
| - filter = path: type: |
22 |
| - builtins.all (x: x) [ |
23 |
| - (baseNameOf path != "package.yaml") |
24 |
| - ]; |
25 |
| - }; |
26 |
| - # `compiler-nix-name` upgrade policy: as soon as inputs.kupo |
27 |
| - compiler-nix-name = lib.mkDefault "ghc96"; |
28 |
| - inputMap = { |
29 |
| - "https://input-output-hk.github.io/cardano-haskell-packages" = inputs.iogx.inputs.CHaP; |
30 |
| - }; |
31 |
| - sha256map = { |
32 |
| - "https://github.com/CardanoSolutions/ogmios"."01f7787216e7ceb8e39c8c6807f7ae53fc14ab9e" = "1TU3IYTzm7h/wpt/fkHbaR0esVhyHKNtdCJpjsferZo="; |
33 |
| - "https://github.com/CardanoSolutions/direct-sqlite"."82c5ab46715ecd51901256144f1411b480e2cb8b" = "fuKhPnIVsmdbQ2gPBTzp9nI/3/BTsnvNIDa1Ypw1L+Q="; |
34 |
| - "https://github.com/CardanoSolutions/text-ansi"."e204822d2f343b2d393170a2ec46ee935571345c" = "e6EINXr5Tfx5vzSY+wmGt/7seIdkM1WM7Tvy4zQ/cZo="; |
35 |
| - }; |
36 |
| - modules = [ |
37 |
| - { |
38 |
| - # FIXME kupo unit tests are not passing |
39 |
| - packages.kupo.components.tests.unit.doCheck = false; |
40 |
| - } |
41 |
| - ]; |
42 |
| - }; |
43 |
| - }; |
44 |
| - nixos-kupo = { pkgs, lib, ... }: { |
45 |
| - flake.nixosModules.kupo = { |
46 |
| - imports = [ ./kupo-nixos-module.nix ]; |
47 |
| - services.kupo.package = lib.mkOptionDefault pkgs.kupo; |
48 |
| - }; |
49 |
| - }; |
| 15 | + nixos = import ./nixos.nix inputs self; |
50 | 16 | in
|
51 | 17 | inputs.iogx.lib.mkFlake {
|
52 | 18 | inherit inputs systems;
|
53 |
| - outputs = c@{ system, ... }: [ |
54 |
| - (hs-kupo c) |
55 |
| - (nixos-kupo c) |
56 |
| - { |
57 |
| - packages.default = self.packages.${system}.kupo; |
58 |
| - } |
59 |
| - ]; |
60 |
| - flake.herculesCI = { |
61 |
| - inherit ciSystems; |
| 19 | + repoRoot = ./.; |
| 20 | + outputs = import ./nix/outputs.nix; |
| 21 | + flake = { |
| 22 | + inherit (nixos) nixosModules; |
| 23 | + herculesCI = { |
| 24 | + inherit ciSystems; |
| 25 | + }; |
62 | 26 | };
|
63 | 27 | };
|
64 | 28 |
|
|
0 commit comments