]> git.scottworley.com Git - trustix-integration-tests/blob - flake.nix
Initial attempt at a subscriber with a local binary cache
[trustix-integration-tests] / flake.nix
1 {
2 description = "Integration tests for trustix";
3
4 inputs = {
5 # nixpkgs.follows = "trustix/nixpkgs"; # When trustix becomes a flake
6 # Until then:
7 nixpkgs.url =
8 "github:nixos/nixpkgs/f5e8bdd07d1afaabf6b37afc5497b1e498b8046f";
9
10 trustix = {
11 url = "github:tweag/trustix";
12 flake = false;
13 };
14 };
15
16 outputs = { self, nixpkgs, trustix, }:
17 let
18 inherit (nixpkgs.lib) genAttrs;
19 supportedSystems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ];
20 forAllSystems = genAttrs supportedSystems;
21
22 in {
23
24 lib = { prefetchNiv = import ./lib/prefetchNiv.nix; };
25
26 checks = forAllSystems (system: {
27 one-publisher = nixpkgs.legacyPackages."${system}".callPackage
28 ./checks/one-publisher.nix {
29 trustixSrc = (nixpkgs.legacyPackages."${system}".callPackage
30 self.lib.prefetchNiv { }) trustix;
31 trustix = (import trustix).packages.trustix;
32 };
33 });
34
35 };
36 }