mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-09-11 12:15:29 +03:00
update flake schema
This commit is contained in:
parent
0849633d73
commit
ef5c3a94b2
18
flake.nix
18
flake.nix
@ -108,21 +108,18 @@
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
# legacy flake schema compat
|
|
||||||
defaultPackage =
|
|
||||||
forAllSystems (system: self.packages.${system}.default);
|
|
||||||
|
|
||||||
checks = forAllSystems (system: {
|
checks = forAllSystems (system: {
|
||||||
inherit (self.packages.${system})
|
inherit (self.packages.${system})
|
||||||
nixos-generate;
|
nixos-generate;
|
||||||
});
|
});
|
||||||
|
|
||||||
devShell = forAllSystems (system: let
|
devShells = forAllSystems (system: let
|
||||||
pkgs = nixpkgs.legacyPackages."${system}";
|
pkgs = nixpkgs.legacyPackages."${system}";
|
||||||
in
|
in {
|
||||||
pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
buildInputs = with pkgs; [jq coreutils findutils];
|
buildInputs = with pkgs; [jq coreutils findutils];
|
||||||
});
|
};
|
||||||
|
});
|
||||||
|
|
||||||
# Make it runnable with `nix run`
|
# Make it runnable with `nix run`
|
||||||
apps = forAllSystems (system: let
|
apps = forAllSystems (system: let
|
||||||
@ -139,7 +136,12 @@
|
|||||||
default = nixos-generate;
|
default = nixos-generate;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
# legacy flake schema compat
|
||||||
defaultApp = forAllSystems (system: self.apps."${system}".nixos-generate);
|
defaultApp = forAllSystems (system: self.apps."${system}".nixos-generate);
|
||||||
|
defaultPackage =
|
||||||
|
forAllSystems (system: self.packages.${system}.default);
|
||||||
|
devShell = forAllSystems (system: self.devShells.${system}.default);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user