2022-01-08 07:33:26 +00:00
|
|
|
{
|
2022-03-13 16:18:46 +00:00
|
|
|
description = "A custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once (Fork of MultiMC)";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
2023-03-14 09:50:07 +00:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
2023-03-14 09:48:19 +00:00
|
|
|
flake-compat = {
|
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
libnbtplusplus = {
|
|
|
|
url = "github:PrismLauncher/libnbtplusplus";
|
|
|
|
flake = false;
|
|
|
|
};
|
2022-01-08 19:15:19 +00:00
|
|
|
};
|
2022-01-08 07:33:26 +00:00
|
|
|
|
2023-03-14 09:48:19 +00:00
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
nixpkgs,
|
2023-03-14 09:50:07 +00:00
|
|
|
flake-utils,
|
2023-03-14 09:48:19 +00:00
|
|
|
libnbtplusplus,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
# User-friendly version number.
|
|
|
|
version = builtins.substring 0 8 self.lastModifiedDate;
|
2022-03-13 16:18:46 +00:00
|
|
|
|
2023-03-14 09:48:19 +00:00
|
|
|
# Supported systems (qtbase is currently broken for "aarch64-darwin")
|
2023-03-14 09:50:07 +00:00
|
|
|
supportedSystems = with flake-utils.lib.system; [
|
|
|
|
x86_64-linux
|
|
|
|
x86_64-darwin
|
|
|
|
aarch64-linux
|
|
|
|
];
|
2022-03-13 16:18:46 +00:00
|
|
|
|
2023-03-14 09:48:19 +00:00
|
|
|
packagesFn = pkgs: rec {
|
2023-03-14 09:50:07 +00:00
|
|
|
prismlauncher-qt5 = pkgs.libsForQt5.callPackage ./nix {
|
|
|
|
inherit version self libnbtplusplus;
|
|
|
|
};
|
|
|
|
prismlauncher = pkgs.qt6Packages.callPackage ./nix {
|
|
|
|
inherit version self libnbtplusplus;
|
|
|
|
};
|
2022-03-13 16:18:46 +00:00
|
|
|
};
|
2023-03-14 09:50:07 +00:00
|
|
|
in
|
|
|
|
flake-utils.lib.eachSystem supportedSystems (system: let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in {
|
|
|
|
packages = let
|
|
|
|
packages = packagesFn pkgs;
|
2023-03-14 09:48:19 +00:00
|
|
|
in
|
2023-03-14 09:50:07 +00:00
|
|
|
packages // {default = packages.prismlauncher;};
|
2023-03-14 09:48:19 +00:00
|
|
|
|
2023-03-14 09:50:07 +00:00
|
|
|
overlay = final: packagesFn;
|
|
|
|
});
|
2022-01-08 15:12:44 +00:00
|
|
|
}
|