depot/third_party/nixpkgs/pkgs/tools/games/minecraft/fabric-installer/default.nix
Default email 3b21d1e521 Project import generated by Copybara.
GitOrigin-RevId: 23cd13167a1432550e48734079c2ffeeb441fb96
2021-07-15 00:03:04 +02:00

35 lines
886 B
Nix

{ lib
, stdenv
, fetchurl
, makeWrapper
, jre }:
stdenv.mkDerivation rec {
pname = "fabric-installer";
version = "0.7.4";
src = fetchurl {
url = "https://maven.fabricmc.net/net/fabricmc/fabric-installer/${version}/fabric-installer-${version}.jar";
sha256 = "0s3nmwpq1qg90c27qh4anvvsg4yzsgcp6kwsb35fsiaaakxn0b8r";
};
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;
};
}