depot/third_party/nixpkgs/pkgs/tools/games/minecraft/fabric-installer/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

36 lines
947 B
Nix

{ lib
, stdenv
, fetchurl
, makeWrapper
, jre }:
stdenv.mkDerivation rec {
pname = "fabric-installer";
version = "0.11.1";
src = fetchurl {
url = "https://maven.fabricmc.net/net/fabricmc/fabric-installer/${version}/fabric-installer-${version}.jar";
sha256 = "sha256-eRf5+hS+babvPNt/5r87Y6WToOuHO9Yn6YGn45iM1zo=";
};
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";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.asl20;
maintainers = [ maintainers.ivar ];
platforms = platforms.unix;
};
}