push
This commit is contained in:
1 parent
c86ee98def
commit
a3163cdd43
29 files changed
+693
-231
No files matched your search
@@ -14,6 +14,7 @@
|
||||
{ pkgs, config, ... }:
|
||||
let
|
||||
home = config.home.homeDirectory;
|
||||
gameDir = "${home}/media/games/minecraft";
|
||||
inherit (pkgs) lib symlinkJoin makeWrapper;
|
||||
|
||||
fetch = map (url: rec {
|
||||
@@ -56,7 +57,7 @@
|
||||
|
||||
appArgs = [
|
||||
"--gameDir"
|
||||
"${home}/.local/share/minecraft"
|
||||
gameDir
|
||||
];
|
||||
}]);
|
||||
|
||||
@@ -65,8 +66,11 @@
|
||||
paths = [ base ];
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
postBuild = ''
|
||||
# the launch script cd's into its own --gameDir (default: $PWD), so pin it too
|
||||
wrapProgram $out/bin/minecraft \
|
||||
--set XDG_DATA_HOME "${home}/.local/share/minecraft"
|
||||
--run 'mkdir -p "${gameDir}"' \
|
||||
--add-flags '--gameDir "${gameDir}"' \
|
||||
--set XDG_DATA_HOME "${gameDir}"
|
||||
'';
|
||||
};
|
||||
in
|
||||
|
||||
Reference in new issue
Block a user