forked from input-output-hk/sc-dev-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
49 lines (48 loc) · 1.17 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 = "Smart Contracts Tribe Developer Platform";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
capsules.url = "github:input-output-hk/devshell-capsules";
devenv.url = "github:cachix/devenv";
nixpkgs.url = "github:NixOS/nixpkgs/23.05";
};
outputs = inputs @ {
self,
flake-parts,
devenv,
capsules,
nixpkgs,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
# Raw flake outputs (generally not system-dependent)
flake = {
devenvModules = import ./devenvModules;
};
# Flake outputs that will be split by system
perSystem = {
config,
pkgs,
inputs',
self',
...
}: {
packages = import ./packages {inherit pkgs inputs';};
devShells = {
default = devenv.lib.mkShell {
inherit pkgs;
inputs = inputs // {inherit inputs' self';};
modules = [
self.devenvModules.metal
self.devenvModules.cloud
];
};
};
};
};
}