Add vmTest for Nixinate #16

Merged
MatthewCroughan merged 4 commits from mc/tests into master 2022-04-24 23:52:18 +00:00
Showing only changes of commit fcae9a11d0 - Show all commits

View file

@ -7,8 +7,11 @@
let
version = builtins.substring 0 8 self.lastModifiedDate;
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; overlays = [ self.overlay ]; });
forSystems = systems: f:
nixpkgs.lib.genAttrs systems
(system: f system nixpkgs.legacyPackages.${system});
forAllSystems = forSystems supportedSystems;
nixpkgsFor = forAllSystems (system: pkgs: import nixpkgs { inherit system; overlays = [ self.overlay ]; });
in rec
{
overlay = final: prev: {
@ -69,6 +72,6 @@
);
};
};
nixinate = forAllSystems (system: nixpkgsFor.${system}.generateApps);
nixinate = forAllSystems (system: pkgs: nixpkgsFor.${system}.generateApps);
};
}