mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-08-16 15:40:26 +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: {
|
||||
inherit (self.packages.${system})
|
||||
nixos-generate;
|
||||
});
|
||||
|
||||
devShell = forAllSystems (system: let
|
||||
devShells = forAllSystems (system: let
|
||||
pkgs = nixpkgs.legacyPackages."${system}";
|
||||
in
|
||||
pkgs.mkShell {
|
||||
in {
|
||||
default = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [jq coreutils findutils];
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
# Make it runnable with `nix run`
|
||||
apps = forAllSystems (system: let
|
||||
@ -139,7 +136,12 @@
|
||||
default = nixos-generate;
|
||||
});
|
||||
|
||||
|
||||
# legacy flake schema compat
|
||||
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