-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
56 lines (43 loc) · 2.09 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
51
52
53
54
55
56
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-compat.url = "github:input-output-hk/flake-compat";
flake-compat.flake = false;
cardano-node.url = "github:IntersectMBO/cardano-node/9.1.0";
cardano-node.flake = false; # prevent lockfile explosion
cardano-js-sdk.url = "github:input-output-hk/cardano-js-sdk/pull/1416/head"; # fix Ogmios mapper on 0.29.3
cardano-js-sdk.flake = false; # we patch it & to prevent lockfile explosion
ogmios.url = "github:CardanoSolutions/ogmios/v6.5.0";
ogmios.flake = false;
mithril.url = "github:input-output-hk/mithril/pull/1885/head"; # file:// URL support on 2430.0
nix-bundle-exe.url = "github:3noch/nix-bundle-exe";
nix-bundle-exe.flake = false;
# FIXME: ‘nsis’ can’t cross-compile with the regular Nixpkgs (above)
nixpkgs-nsis.url = "github:input-output-hk/nixpkgs/be445a9074f139d63e704fa82610d25456562c3d";
nixpkgs-nsis.flake = false; # too old
};
outputs = inputs: let
supportedSystem = ["x86_64-linux" "x86_64-darwin" "aarch64-darwin"];
inherit (inputs.nixpkgs) lib;
in {
packages = lib.genAttrs supportedSystem (buildSystem:
import ./nix/blockchain-services/packages.nix { inherit inputs buildSystem; }
);
internal = {
blockchain-services = import ./nix/blockchain-services/internal.nix { inherit inputs; };
};
hydraJobs = {
blockchain-services-installer = {
x86_64-linux = inputs.self.packages.x86_64-linux.blockchain-services-installer;
x86_64-darwin = inputs.self.packages.x86_64-darwin.blockchain-services-installer;
aarch64-darwin = inputs.self.packages.aarch64-darwin.blockchain-services-installer;
x86_64-windows = inputs.self.packages.x86_64-linux.blockchain-services-installer-x86_64-windows;
};
required = inputs.nixpkgs.legacyPackages.x86_64-linux.releaseTools.aggregate {
name = "github-required";
meta.description = "All jobs required to pass CI";
constituents = __attrValues inputs.self.hydraJobs.blockchain-services-installer;
};
};
};
}