Merge pull request #1093 from getchoo/use-flake-parts
Refactor Nix Flake
This commit is contained in:
commit
7e016c44c1
15
default.nix
15
default.nix
@ -1 +1,14 @@
|
|||||||
(import nix/flake-compat.nix).defaultNix
|
(
|
||||||
|
import
|
||||||
|
(
|
||||||
|
let
|
||||||
|
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
|
||||||
|
in
|
||||||
|
fetchTarball {
|
||||||
|
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
|
||||||
|
sha256 = lock.nodes.flake-compat.locked.narHash;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
{src = ./.;}
|
||||||
|
)
|
||||||
|
.defaultNix
|
||||||
|
62
flake.lock
generated
62
flake.lock
generated
@ -16,29 +16,31 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat_2": {
|
"flake-parts": {
|
||||||
"flake": false,
|
"inputs": {
|
||||||
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1673956053,
|
"lastModified": 1683560683,
|
||||||
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
|
"narHash": "sha256-XAygPMN5Xnk/W2c1aW0jyEa6lfMDZWlQgiNtmHXytPc=",
|
||||||
"owner": "edolstra",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-compat",
|
"repo": "flake-parts",
|
||||||
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
|
"rev": "006c75898cf814ef9497252b022e91c946ba8e17",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "edolstra",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-compat",
|
"repo": "flake-parts",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-utils": {
|
"flake-utils": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1676283394,
|
"lastModified": 1667395993,
|
||||||
"narHash": "sha256-XX2f9c3iySLCw54rJ/CZs+ZK6IQy7GXNY4nSOyu2QG4=",
|
"narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "3db36a8b464d0c4532ba1c7dda728f4576d6d073",
|
"rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -86,11 +88,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1678693419,
|
"lastModified": 1685012353,
|
||||||
"narHash": "sha256-bbSv5yqZAW6dz+3f3f3pOUZbxpPN+3OgCljgn7P+nnQ=",
|
"narHash": "sha256-U3oOge4cHnav8OLGdRVhL45xoRj4Ppd+It6nPC9nNIU=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "8e3fad82be64c06fbfb9fd43993aec9ef4623936",
|
"rev": "aeb75dba965e790de427b73315d5addf91a54955",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -100,40 +102,44 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-lib": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1673800717,
|
"dir": "lib",
|
||||||
"narHash": "sha256-SFHraUqLSu5cC6IxTprex/nTsI81ZQAtDvlBvGDWfnA=",
|
"lastModified": 1682879489,
|
||||||
|
"narHash": "sha256-sASwo8gBt7JDnOOstnps90K1wxmVfyhsTPPNTGBPjjg=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "2f9fd351ec37f5d479556cd48be4ca340da59b8f",
|
"rev": "da45bf6ec7bbcc5d1e14d3795c025199f28e0de0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
"dir": "lib",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"ref": "nixos-22.11",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pre-commit-hooks": {
|
"pre-commit-hooks": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": [
|
||||||
"flake-utils": [
|
"flake-compat"
|
||||||
"flake-utils"
|
|
||||||
],
|
],
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
"gitignore": "gitignore",
|
"gitignore": "gitignore",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"nixpkgs-stable": "nixpkgs-stable"
|
"nixpkgs-stable": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1678376203,
|
"lastModified": 1684842236,
|
||||||
"narHash": "sha256-3tyYGyC8h7fBwncLZy5nCUjTJPrHbmNwp47LlNLOHSM=",
|
"narHash": "sha256-rYWsIXHvNhVQ15RQlBUv67W3YnM+Pd+DuXGMvCBq2IE=",
|
||||||
"owner": "cachix",
|
"owner": "cachix",
|
||||||
"repo": "pre-commit-hooks.nix",
|
"repo": "pre-commit-hooks.nix",
|
||||||
"rev": "1a20b9708962096ec2481eeb2ddca29ed747770a",
|
"rev": "61e567d6497bc9556f391faebe5e410e6623217f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -145,7 +151,7 @@
|
|||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"flake-utils": "flake-utils",
|
"flake-parts": "flake-parts",
|
||||||
"libnbtplusplus": "libnbtplusplus",
|
"libnbtplusplus": "libnbtplusplus",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"pre-commit-hooks": "pre-commit-hooks"
|
"pre-commit-hooks": "pre-commit-hooks"
|
||||||
|
78
flake.nix
78
flake.nix
@ -3,11 +3,12 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
pre-commit-hooks = {
|
pre-commit-hooks = {
|
||||||
url = "github:cachix/pre-commit-hooks.nix";
|
url = "github:cachix/pre-commit-hooks.nix";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
inputs.flake-utils.follows = "flake-utils";
|
inputs.nixpkgs-stable.follows = "nixpkgs";
|
||||||
|
inputs.flake-compat.follows = "flake-compat";
|
||||||
};
|
};
|
||||||
flake-compat = {
|
flake-compat = {
|
||||||
url = "github:edolstra/flake-compat";
|
url = "github:edolstra/flake-compat";
|
||||||
@ -19,73 +20,8 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = inputs:
|
||||||
self,
|
inputs.flake-parts.lib.mkFlake
|
||||||
nixpkgs,
|
{inherit inputs;}
|
||||||
flake-utils,
|
{imports = [./nix];};
|
||||||
pre-commit-hooks,
|
|
||||||
libnbtplusplus,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
# User-friendly version number.
|
|
||||||
version = builtins.substring 0 8 self.lastModifiedDate;
|
|
||||||
|
|
||||||
# Supported systems (qtbase is currently broken for "aarch64-darwin")
|
|
||||||
supportedSystems = with flake-utils.lib.system; [
|
|
||||||
x86_64-linux
|
|
||||||
x86_64-darwin
|
|
||||||
aarch64-linux
|
|
||||||
];
|
|
||||||
|
|
||||||
packagesFn = pkgs: {
|
|
||||||
prismlauncher-qt5 = pkgs.libsForQt5.callPackage ./nix {
|
|
||||||
inherit version self libnbtplusplus;
|
|
||||||
};
|
|
||||||
prismlauncher = pkgs.qt6Packages.callPackage ./nix {
|
|
||||||
inherit version self libnbtplusplus;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
flake-utils.lib.eachSystem supportedSystems (system: let
|
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
|
||||||
in {
|
|
||||||
checks = {
|
|
||||||
pre-commit-check = pre-commit-hooks.lib.${system}.run {
|
|
||||||
src = ./.;
|
|
||||||
hooks = {
|
|
||||||
markdownlint.enable = true;
|
|
||||||
|
|
||||||
alejandra.enable = true;
|
|
||||||
deadnix.enable = true;
|
|
||||||
|
|
||||||
clang-format = {
|
|
||||||
enable =
|
|
||||||
false; # As most of the codebase is **not** formatted, we don't want clang-format yet
|
|
||||||
types_or = ["c" "c++"];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
packages = let
|
|
||||||
packages = packagesFn pkgs;
|
|
||||||
in
|
|
||||||
packages // {default = packages.prismlauncher;};
|
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
|
||||||
inherit (self.checks.${system}.pre-commit-check) shellHook;
|
|
||||||
packages = with pkgs; [
|
|
||||||
nodePackages.markdownlint-cli
|
|
||||||
alejandra
|
|
||||||
deadnix
|
|
||||||
clang-tools
|
|
||||||
];
|
|
||||||
|
|
||||||
inputsFrom = [self.packages.${system}.default];
|
|
||||||
buildInputs = with pkgs; [ccache ninja];
|
|
||||||
};
|
|
||||||
})
|
|
||||||
// {
|
|
||||||
overlays.default = final: _: (packagesFn final);
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
120
nix/default.nix
120
nix/default.nix
@ -1,100 +1,32 @@
|
|||||||
{
|
{
|
||||||
lib,
|
inputs,
|
||||||
stdenv,
|
|
||||||
cmake,
|
|
||||||
ninja,
|
|
||||||
jdk8,
|
|
||||||
jdk17,
|
|
||||||
zlib,
|
|
||||||
file,
|
|
||||||
wrapQtAppsHook,
|
|
||||||
xorg,
|
|
||||||
libpulseaudio,
|
|
||||||
qtbase,
|
|
||||||
qtsvg,
|
|
||||||
qtwayland,
|
|
||||||
libGL,
|
|
||||||
quazip,
|
|
||||||
glfw,
|
|
||||||
openal,
|
|
||||||
extra-cmake-modules,
|
|
||||||
tomlplusplus,
|
|
||||||
ghc_filesystem,
|
|
||||||
cmark,
|
|
||||||
msaClientID ? "",
|
|
||||||
jdks ? [jdk17 jdk8],
|
|
||||||
gamemodeSupport ? true,
|
|
||||||
gamemode,
|
|
||||||
# flake
|
|
||||||
self,
|
self,
|
||||||
version,
|
...
|
||||||
libnbtplusplus,
|
}: {
|
||||||
}:
|
imports = [
|
||||||
stdenv.mkDerivation rec {
|
./dev.nix
|
||||||
pname = "prismlauncher";
|
./distribution.nix
|
||||||
inherit version;
|
|
||||||
|
|
||||||
src = lib.cleanSource self;
|
|
||||||
|
|
||||||
nativeBuildInputs = [extra-cmake-modules cmake file jdk17 ninja wrapQtAppsHook];
|
|
||||||
buildInputs =
|
|
||||||
[
|
|
||||||
qtbase
|
|
||||||
qtsvg
|
|
||||||
zlib
|
|
||||||
quazip
|
|
||||||
ghc_filesystem
|
|
||||||
tomlplusplus
|
|
||||||
cmark
|
|
||||||
]
|
|
||||||
++ lib.optional (lib.versionAtLeast qtbase.version "6") qtwayland
|
|
||||||
++ lib.optional gamemodeSupport gamemode.dev;
|
|
||||||
|
|
||||||
cmakeFlags =
|
|
||||||
lib.optionals (msaClientID != "") ["-DLauncher_MSA_CLIENT_ID=${msaClientID}"]
|
|
||||||
++ lib.optionals (lib.versionOlder qtbase.version "6") ["-DLauncher_QT_VERSION_MAJOR=5"];
|
|
||||||
|
|
||||||
postUnpack = ''
|
|
||||||
rm -rf source/libraries/libnbtplusplus
|
|
||||||
mkdir source/libraries/libnbtplusplus
|
|
||||||
ln -s ${libnbtplusplus}/* source/libraries/libnbtplusplus
|
|
||||||
chmod -R +r+w source/libraries/libnbtplusplus
|
|
||||||
chown -R $USER: source/libraries/libnbtplusplus
|
|
||||||
'';
|
|
||||||
|
|
||||||
qtWrapperArgs = let
|
|
||||||
libpath = with xorg;
|
|
||||||
lib.makeLibraryPath ([
|
|
||||||
libX11
|
|
||||||
libXext
|
|
||||||
libXcursor
|
|
||||||
libXrandr
|
|
||||||
libXxf86vm
|
|
||||||
libpulseaudio
|
|
||||||
libGL
|
|
||||||
glfw
|
|
||||||
openal
|
|
||||||
stdenv.cc.cc.lib
|
|
||||||
]
|
|
||||||
++ lib.optional gamemodeSupport gamemode.lib);
|
|
||||||
in [
|
|
||||||
"--set LD_LIBRARY_PATH /run/opengl-driver/lib:${libpath}"
|
|
||||||
"--prefix PRISMLAUNCHER_JAVA_PATHS : ${lib.makeSearchPath "bin/java" jdks}"
|
|
||||||
# xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128
|
|
||||||
"--prefix PATH : ${lib.makeBinPath [xorg.xrandr]}"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
_module.args = {
|
||||||
homepage = "https://prismlauncher.org/";
|
# User-friendly version number.
|
||||||
description = "A free, open source launcher for Minecraft";
|
version = builtins.substring 0 8 self.lastModifiedDate;
|
||||||
longDescription = ''
|
|
||||||
Allows you to have multiple, separate instances of Minecraft (each with
|
|
||||||
their own mods, texture packs, saves, etc) and helps you manage them and
|
|
||||||
their associated options with a simple interface.
|
|
||||||
'';
|
|
||||||
platforms = platforms.linux;
|
|
||||||
changelog = "https://github.com/PrismLauncher/PrismLauncher/releases/tag/${version}";
|
|
||||||
license = licenses.gpl3Only;
|
|
||||||
maintainers = with maintainers; [minion3665 Scrumplex];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
perSystem = {system, ...}: {
|
||||||
|
# Nixpkgs instantiated for supported systems with our overlay.
|
||||||
|
_module.args.pkgs = import inputs.nixpkgs {
|
||||||
|
inherit system;
|
||||||
|
overlays = [self.overlays.default];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Supported systems.
|
||||||
|
systems = [
|
||||||
|
"x86_64-linux"
|
||||||
|
"x86_64-darwin"
|
||||||
|
"aarch64-linux"
|
||||||
|
# Disabled due to qtbase being currently broken for "aarch64-darwin."
|
||||||
|
# "aarch64-darwin"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
46
nix/dev.nix
Normal file
46
nix/dev.nix
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
self,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
perSystem = {
|
||||||
|
system,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
checks = {
|
||||||
|
pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run {
|
||||||
|
src = self;
|
||||||
|
hooks = {
|
||||||
|
markdownlint.enable = true;
|
||||||
|
|
||||||
|
alejandra.enable = true;
|
||||||
|
deadnix.enable = true;
|
||||||
|
nil.enable = true;
|
||||||
|
|
||||||
|
clang-format = {
|
||||||
|
enable =
|
||||||
|
false; # As most of the codebase is **not** formatted, we don't want clang-format yet
|
||||||
|
types_or = ["c" "c++"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
devShells.default = pkgs.mkShell {
|
||||||
|
inherit (self.checks.${system}.pre-commit-check) shellHook;
|
||||||
|
packages = with pkgs; [
|
||||||
|
nodePackages.markdownlint-cli
|
||||||
|
alejandra
|
||||||
|
deadnix
|
||||||
|
clang-tools
|
||||||
|
nil
|
||||||
|
];
|
||||||
|
|
||||||
|
inputsFrom = [self.packages.${system}.default];
|
||||||
|
buildInputs = with pkgs; [ccache ninja];
|
||||||
|
};
|
||||||
|
|
||||||
|
formatter = pkgs.alejandra;
|
||||||
|
};
|
||||||
|
}
|
29
nix/distribution.nix
Normal file
29
nix/distribution.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
inputs,
|
||||||
|
self,
|
||||||
|
version,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
perSystem = {pkgs, ...}: {
|
||||||
|
packages = {
|
||||||
|
inherit (pkgs) prismlauncher-qt5-unwrapped prismlauncher-qt5 prismlauncher-unwrapped prismlauncher;
|
||||||
|
default = pkgs.prismlauncher;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
flake = {
|
||||||
|
overlays.default = final: prev: let
|
||||||
|
# Helper function to build prism against different versions of Qt.
|
||||||
|
mkPrism = qt:
|
||||||
|
qt.callPackage ./package.nix {
|
||||||
|
inherit (inputs) libnbtplusplus;
|
||||||
|
inherit self version;
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
prismlauncher-qt5-unwrapped = mkPrism final.libsForQt5;
|
||||||
|
prismlauncher-qt5 = prev.prismlauncher-qt5.override {prismlauncher-unwrapped = final.prismlauncher-qt5-unwrapped;};
|
||||||
|
prismlauncher-unwrapped = mkPrism final.qt6Packages;
|
||||||
|
prismlauncher = prev.prismlauncher.override {inherit (final) prismlauncher-unwrapped;};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -1,9 +0,0 @@
|
|||||||
let
|
|
||||||
lock = builtins.fromJSON (builtins.readFile ../flake.lock);
|
|
||||||
inherit (lock.nodes.flake-compat.locked) rev narHash;
|
|
||||||
flake-compat = fetchTarball {
|
|
||||||
url = "https://github.com/edolstra/flake-compat/archive/${rev}.tar.gz";
|
|
||||||
sha256 = narHash;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
import flake-compat {src = ../.;}
|
|
65
nix/package.nix
Normal file
65
nix/package.nix
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
cmake,
|
||||||
|
ninja,
|
||||||
|
jdk17,
|
||||||
|
zlib,
|
||||||
|
qtbase,
|
||||||
|
quazip,
|
||||||
|
extra-cmake-modules,
|
||||||
|
tomlplusplus,
|
||||||
|
cmark,
|
||||||
|
ghc_filesystem,
|
||||||
|
gamemode,
|
||||||
|
msaClientID ? null,
|
||||||
|
gamemodeSupport ? true,
|
||||||
|
self,
|
||||||
|
version,
|
||||||
|
libnbtplusplus,
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "prismlauncher-unwrapped";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
|
src = lib.cleanSource self;
|
||||||
|
|
||||||
|
nativeBuildInputs = [extra-cmake-modules cmake jdk17 ninja];
|
||||||
|
buildInputs =
|
||||||
|
[
|
||||||
|
qtbase
|
||||||
|
zlib
|
||||||
|
quazip
|
||||||
|
ghc_filesystem
|
||||||
|
tomlplusplus
|
||||||
|
cmark
|
||||||
|
]
|
||||||
|
++ lib.optional gamemodeSupport gamemode;
|
||||||
|
|
||||||
|
hardeningEnable = ["pie"];
|
||||||
|
|
||||||
|
cmakeFlags =
|
||||||
|
lib.optionals (msaClientID != null) ["-DLauncher_MSA_CLIENT_ID=${msaClientID}"]
|
||||||
|
++ lib.optionals (lib.versionOlder qtbase.version "6") ["-DLauncher_QT_VERSION_MAJOR=5"];
|
||||||
|
|
||||||
|
postUnpack = ''
|
||||||
|
rm -rf source/libraries/libnbtplusplus
|
||||||
|
ln -s ${libnbtplusplus} source/libraries/libnbtplusplus
|
||||||
|
'';
|
||||||
|
|
||||||
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://prismlauncher.org/";
|
||||||
|
description = "A free, open source launcher for Minecraft";
|
||||||
|
longDescription = ''
|
||||||
|
Allows you to have multiple, separate instances of Minecraft (each with
|
||||||
|
their own mods, texture packs, saves, etc) and helps you manage them and
|
||||||
|
their associated options with a simple interface.
|
||||||
|
'';
|
||||||
|
platforms = platforms.linux;
|
||||||
|
changelog = "https://github.com/PrismLauncher/PrismLauncher/releases/tag/${version}";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
maintainers = with maintainers; [minion3665 Scrumplex];
|
||||||
|
};
|
||||||
|
}
|
@ -2,5 +2,11 @@
|
|||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": [
|
"extends": [
|
||||||
"config:base"
|
"config:base"
|
||||||
]
|
],
|
||||||
|
"nix": {
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
"lockFileMaintenance": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user