2021-07-14 22:03:04 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, makeWrapper
|
|
|
|
, jre }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "fabric-installer";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.0.0";
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://maven.fabricmc.net/net/fabricmc/fabric-installer/${version}/fabric-installer-${version}.jar";
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-fX5bHTp/jiCBBpiY6V3HHYS7Olx5yyNcA0iVFzz9NHs=";
|
2021-07-14 22:03:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ jre makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{bin,lib/fabric}
|
|
|
|
|
|
|
|
cp $src $out/lib/fabric/fabric-installer.jar
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/fabric-installer \
|
|
|
|
--add-flags "-jar $out/lib/fabric/fabric-installer.jar"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://fabricmc.net/";
|
|
|
|
description = "A lightweight, experimental modding toolchain for Minecraft";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2021-07-14 22:03:04 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ivar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|