-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
28 lines (24 loc) · 808 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
{
inputs.pac-nix.url = "github:katrinafyi/pac-nix/nixpkgs-update-for-dune-3-17";
nixConfig.extra-substituters = [ "https://pac-nix.cachix.org/" ];
nixConfig.extra-trusted-public-keys = [ "pac-nix.cachix.org-1:l29Pc2zYR5yZyfSzk1v17uEZkhEw0gI4cXuOIsxIGpc=" ];
outputs = {self, pac-nix}:
let
nixpkgs = pac-nix.inputs.nixpkgs;
forAllSystems = f:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
] (system: f system pac-nix.legacyPackages.${system});
in {
packages = forAllSystems (sys: pac-nix: {
default =
pac-nix.aslp_web.overrideAttrs {
name = "aslp-web-local-build";
src = nixpkgs.lib.cleanSource ./.;
};
});
};
}