summary refs log tree commit diff
path: root/pkgs/tools/games
diff options
context:
space:
mode:
authormib <mib@kanp.ai>2023-07-04 00:37:57 +0200
committermib <mib@kanp.ai>2023-07-04 00:37:57 +0200
commitae059c58a1fb991a719c6b9f3c91138e13c97f8a (patch)
treee25088b186037e9bc7577149181de4622146bf44 /pkgs/tools/games
parentdaf9c822dd68da88aaf6ab777cca8b2c2fcfafaf (diff)
downloadnixpkgs-ae059c58a1fb991a719c6b9f3c91138e13c97f8a.tar
nixpkgs-ae059c58a1fb991a719c6b9f3c91138e13c97f8a.tar.gz
nixpkgs-ae059c58a1fb991a719c6b9f3c91138e13c97f8a.tar.bz2
nixpkgs-ae059c58a1fb991a719c6b9f3c91138e13c97f8a.tar.lz
nixpkgs-ae059c58a1fb991a719c6b9f3c91138e13c97f8a.tar.xz
nixpkgs-ae059c58a1fb991a719c6b9f3c91138e13c97f8a.tar.zst
nixpkgs-ae059c58a1fb991a719c6b9f3c91138e13c97f8a.zip
slipstream: document slipstream weirdness
Diffstat (limited to 'pkgs/tools/games')
-rw-r--r--pkgs/tools/games/slipstream/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/games/slipstream/default.nix b/pkgs/tools/games/slipstream/default.nix
index 8559a3e37cd..550b226a18e 100644
--- a/pkgs/tools/games/slipstream/default.nix
+++ b/pkgs/tools/games/slipstream/default.nix
@@ -24,6 +24,12 @@ mavenWithJdk.buildMavenPackage rec {
     install -Dm644 target/ftl-mod-manager-${version}.jar $out/share/java
     install -Dm644 target/modman.jar $out/share/java
 
+    # slipstream is very finniky about having specific
+    # folders at startup, so wrapper creates them for it.
+    # this is because slipstream expects to be started from
+    # archive it comes from, but we can't do that since
+    # we need the mods directory to be writable.
+    # see: https://github.com/Vhati/Slipstream-Mod-Manager/blob/85cad4ffbef8583d908b189204d7d22a26be43f8/src/main/java/net/vhati/modmanager/cli/SlipstreamCLI.java#L105
     makeWrapper ${jdk}/bin/java $out/bin/${pname} \
       --run 'echo $XDG_DATA_HOME > $HOME/debug' \
       --run '_dir="''${XDG_DATA_HOME:-$HOME/.local/share}/slipstream"' \