-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
43 lines (35 loc) · 1.12 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
{
description = "bld is an experimental frontend for monorepos";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
devshell.url = "github:numtide/devshell";
};
nixConfig.extra-substituters = [ "https://numtide.cachix.org/" ];
nixConfig.extra-trusted-public-keys = [ "numtide.cachix.org-1:2ps1kLBUWjxIneOy1Ik6cQjb41X0iXVXeHigGmycPPE=" ];
outputs = { self, nixpkgs, devshell }:
let
supportedSystems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
in
{
legacyPackages = forAllSystems (system:
import self {
nixpkgs = nixpkgs.legacyPackages.${system};
inherit system;
});
packages = forAllSystems (system: {
inherit (self.legacyPackages.${system}) default bld;
});
devShells = forAllSystems (system: {
default = self.legacyPackages.${system}.devShell;
});
lib = import ./lib;
checks = self.packages;
hydraJobs = self.legacyPackages.x86_64-linux._flatten {};
};
}