nixos-config/pkgs/ftb.nix

19 lines
455 B
Nix
Raw Normal View History

2022-11-26 20:57:17 +00:00
# https://feed-the-beast.com/
2023-12-21 06:38:32 +00:00
{ fetchurl
2024-03-06 01:46:27 +00:00
, steam-run
2022-11-26 20:57:17 +00:00
, writeShellScriptBin
}:
let
installer = fetchurl {
2024-03-06 01:46:27 +00:00
url = "https://apps.modpacks.ch/FTBApp/release/202401041638-9dc7936164/FTBA_unix_202401041638-9dc7936164.sh";
sha256 = "7806cbf6dd0f91a83ea81f1f3450b586d93a479c9e2982751b2124b9c3e25481";
2022-11-26 20:57:17 +00:00
};
in
writeShellScriptBin "ftb" ''
2024-03-06 01:46:27 +00:00
[ -d ~/FTBA ] || ${steam-run}/bin/steam-run bash ${installer} -q
${steam-run}/bin/steam-run ~/FTBA/FTBApp
2022-11-26 20:57:17 +00:00
''