Prepare for Nix 2.7 (#286)
* Prepare for Nix 2.7 * Fix embarassing oopsie
This commit is contained in:
parent
4ca634d229
commit
cf4949b4f5
10
flake.nix
10
flake.nix
@ -22,15 +22,17 @@
|
|||||||
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system});
|
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system});
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages = forAllSystems (system: {
|
packages = forAllSystems (system: rec {
|
||||||
polymc = pkgs.${system}.libsForQt5.callPackage ./nix { inherit version self libnbtplusplus; };
|
polymc = pkgs.${system}.libsForQt5.callPackage ./nix { inherit version self libnbtplusplus; };
|
||||||
polymc-qt6 = pkgs.${system}.qt6Packages.callPackage ./nix { inherit version self libnbtplusplus; };
|
polymc-qt6 = pkgs.${system}.qt6Packages.callPackage ./nix { inherit version self libnbtplusplus; };
|
||||||
|
|
||||||
|
default = polymc;
|
||||||
});
|
});
|
||||||
|
|
||||||
defaultPackage = forAllSystems (system: self.packages.${system}.polymc);
|
defaultPackage = forAllSystems (system: self.packages.${system}.default);
|
||||||
|
|
||||||
apps = forAllSystems (system: { polymc = { type = "app"; program = "${self.defaultPackage.${system}}/bin/polymc"; }; });
|
apps = forAllSystems (system: rec { polymc = { type = "app"; program = "${self.defaultPackage.${system}}/bin/polymc"; }; default = polymc; });
|
||||||
defaultApp = forAllSystems (system: self.apps.${system}.polymc);
|
defaultApp = forAllSystems (system: self.apps.${system}.default);
|
||||||
|
|
||||||
overlay = final: prev: { polymc = self.defaultPackage.${final.system}; };
|
overlay = final: prev: { polymc = self.defaultPackage.${final.system}; };
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user