-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
32 lines (28 loc) · 885 Bytes
/
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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-22.11";
stacklock2nix.url = "github:cdepillabout/stacklock2nix/main";
};
outputs = inputs:
with inputs; let
supportedSystems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: f system);
nixpkgsFor = forAllSystems (system:
import nixpkgs {
inherit system;
overlays = [stacklock2nix.overlay self.overlay];
});
in {
overlay = import nix/overlay.nix;
packages = forAllSystems (system: {
site = nixpkgsFor.${system}.site-app;
});
defaultPackage = forAllSystems (system: self.packages.${system}.site);
devShell = forAllSystems (system: nixpkgsFor.${system}.site-dev-shell);
};
}