pkgs: add mcaselector
This commit is contained in:
parent
346b342920
commit
c85d128c3b
2 changed files with 44 additions and 0 deletions
|
@ -8,4 +8,6 @@ final: prev: {
|
||||||
nix-modrinth-prefetch = final.callPackage ./nix-modrinth-prefetch.nix { };
|
nix-modrinth-prefetch = final.callPackage ./nix-modrinth-prefetch.nix { };
|
||||||
|
|
||||||
qtile-unstable = final.callPackage ./qtile.nix { source = final.sources.qtile; };
|
qtile-unstable = final.callPackage ./qtile.nix { source = final.sources.qtile; };
|
||||||
|
|
||||||
|
mcaselector = final.callPackage ./mcaselector.nix { };
|
||||||
}
|
}
|
||||||
|
|
42
pkgs/mcaselector.nix
Normal file
42
pkgs/mcaselector.nix
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchurl
|
||||||
|
, jre
|
||||||
|
, gtk3
|
||||||
|
, makeWrapper
|
||||||
|
, wrapGAppsHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation (self: rec {
|
||||||
|
pname = "mcaselector";
|
||||||
|
version = "2.1";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/Querz/mcaselector/releases/download/${version}/mcaselector-${version}.jar";
|
||||||
|
sha256 = "sha256-6byZ3kH+iLAv2NZ2MzMvwlJ/RFNk4jl4RnT2S0Ctu90=";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontUnpack = true;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
gtk3
|
||||||
|
makeWrapper
|
||||||
|
wrapGAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -pv $out/share/java $out/bin
|
||||||
|
cp ${src} $out/share/java/${self.name}.jar
|
||||||
|
|
||||||
|
makeWrapper ${jre}/bin/java $out/bin/mcaselector \
|
||||||
|
--add-flags "-jar $out/share/java/${self.name}.jar"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/Querz/mcaselector";
|
||||||
|
description = "A tool to select chunks from Minecraft worlds for deletion or export. ";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.all; # Uses a 'universal' jar
|
||||||
|
maintainers = with maintainers; [ infinidoge ];
|
||||||
|
};
|
||||||
|
})
|
Loading…
Add table
Add a link
Reference in a new issue