49 lines
1.5 KiB
Nix
49 lines
1.5 KiB
Nix
{ lib, stdenv, fetchurl, makeWrapper, jre_headless, gawk }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ftb-app";
|
|
version = "202208131844";
|
|
|
|
# src = fetchurl {
|
|
# url = "https://apps.modpacks.ch/FTBApp/release/202208131844-e5790011d3-release/FTBA_unix_202208131844-e5790011d3-release.sh";
|
|
# sha256 = "afe8a2a81b5f0597ef6a3bc858ff67b8212ebe5f0fd414471ef10d152921b964";
|
|
# };
|
|
|
|
preferLocalBuild = true;
|
|
|
|
sourceRoot = "${pname}-${version}";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
# patches = [ ./nexus-bin.patch ./nexus-vm-opts.patch ];
|
|
|
|
# postPatch = ''
|
|
# substituteInPlace bin/nexus.vmoptions \
|
|
# --replace etc/karaf $out/etc/karaf \
|
|
# --replace =. =$out
|
|
# '';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out
|
|
wget https://apps.modpacks.ch/FTBApp/release/202208131844-e5790011d3-release/FTBA_unix_202208131844-e5790011d3-release.sh -O $out/ftba.sh
|
|
# cp FTBA_unix_*.sh $out/fbta.sh
|
|
# cp -rfv * .install4j $out
|
|
# rm -fv $out/bin/nexus.bat
|
|
wrapProgram $out/ftba.sh \
|
|
--set JAVA_HOME ${jre_headless} \
|
|
--set ALTERNATIVE_NAME "ftba" \
|
|
--prefix PATH "${lib.makeBinPath [ gawk ]}"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Minecraft Feed The Beast App for playing modded Minecraft.";
|
|
homepage = "https://www.feed-the-beast.com/app";
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
# license = licenses.epl10;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ seanomik ];
|
|
};
|
|
}
|