3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/games/minecraft/fabric-installer/default.nix

36 lines
886 B
Nix
Raw Normal View History

2021-07-09 00:40:37 +01:00
{ lib
, stdenv
, fetchurl
, makeWrapper
, jre }:
stdenv.mkDerivation rec {
pname = "fabric-installer";
2021-12-11 04:35:59 +00:00
version = "0.10.2";
2021-07-09 00:40:37 +01:00
src = fetchurl {
url = "https://maven.fabricmc.net/net/fabricmc/fabric-installer/${version}/fabric-installer-${version}.jar";
2021-12-11 04:35:59 +00:00
sha256 = "sha256-xjnL1nURAr4z2OZKEqiC/E6+rSvDpxrfGwm/5Bvxxno=";
2021-07-09 00:40:37 +01: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";
license = licenses.asl20;
maintainers = [ maintainers.ivar ];
platforms = platforms.unix;
};
}