-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
27 lines (27 loc) · 797 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
{
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = {
self,
nixpkgs,
...
} @ inputs: let
inherit (self) outputs;
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
forEachSystem = nixpkgs.lib.genAttrs systems;
forEachPkgs = f: forEachSystem (sys: f nixpkgs.legacyPackages.${sys});
conformance' = pkgs: (pkgs.callPackage ./conformance.nix {});
in {
formatter = forEachPkgs (pkgs: pkgs.alejandra);
packages = forEachPkgs (pkgs: rec {
default = conformanceTest;
conformance = conformance' pkgs;
conformanceTest = conformance.conformanceTest {
rootURL = "http://127.0.0.1:3001";
namespace = "testing";
crossmountNamespace = "other-testing";
};
});
};
}