Prepare for Nix 2.7 (#286)

* Prepare for Nix 2.7

* Fix embarassing oopsie
This commit is contained in:
TheOPtimal 2022-06-04 05:26:46 +04:00 committed by GitHub
parent 4ca634d229
commit cf4949b4f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,15 +22,17 @@
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system});
in
{
packages = forAllSystems (system: {
packages = forAllSystems (system: rec {
polymc = pkgs.${system}.libsForQt5.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"; }; });
defaultApp = forAllSystems (system: self.apps.${system}.polymc);
apps = forAllSystems (system: rec { polymc = { type = "app"; program = "${self.defaultPackage.${system}}/bin/polymc"; }; default = polymc; });
defaultApp = forAllSystems (system: self.apps.${system}.default);
overlay = final: prev: { polymc = self.defaultPackage.${final.system}; };
};