pkgs: add outer-wilds-text-adventure
This commit is contained in:
parent
cb0545832e
commit
176fa72273
|
@ -135,6 +135,11 @@ example
|
||||||
feedvalidator --base "https://my-base-url/atom.xml" path/to/atom.xml
|
feedvalidator --base "https://my-base-url/atom.xml" path/to/atom.xml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### [`outer-wilds-text-adventure`](./pkgs/games/outer-wilds-text-adventure)
|
||||||
|
|
||||||
|
nix packaging for the Outer Wilds text adventure game. It's broken atm because of a nix issue with
|
||||||
|
JavaSound. i'm not sure how to fix it
|
||||||
|
|
||||||
## lib documentation
|
## lib documentation
|
||||||
|
|
||||||
### [`fetchFromSteam`](./lib/fetchsteam)
|
### [`fetchFromSteam`](./lib/fetchsteam)
|
||||||
|
|
|
@ -27,6 +27,8 @@
|
||||||
# add to top level because it has a binary
|
# add to top level because it has a binary
|
||||||
feedvalidator = final.python312Packages.feedvalidator;
|
feedvalidator = final.python312Packages.feedvalidator;
|
||||||
|
|
||||||
|
outer-wilds-text-adventure = prev.callPackage ./pkgs/games/outer-wilds-text-adventure {};
|
||||||
|
|
||||||
mkNginxServer = prev.callPackage ./lib/dev-nginx {};
|
mkNginxServer = prev.callPackage ./lib/dev-nginx {};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
|
@ -0,0 +1,61 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
fetchzip,
|
||||||
|
stdenvNoCC,
|
||||||
|
|
||||||
|
bash,
|
||||||
|
jdk11,
|
||||||
|
jogl
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
jdk = jdk11;
|
||||||
|
joglJarFiles = [
|
||||||
|
"gluegen-rt-natives-linux-amd64.jar"
|
||||||
|
"gluegen-rt.jar"
|
||||||
|
"jogl-all-natives-linux-amd64.jar"
|
||||||
|
"jogl-all.jar"
|
||||||
|
"nativewindow-awt.jar"
|
||||||
|
"nativewindow-natives-linux-amd64.jar"
|
||||||
|
"nativewindow-os-drm.jar"
|
||||||
|
"nativewindow-os-x11.jar"
|
||||||
|
"nativewindow.jar"
|
||||||
|
];
|
||||||
|
joglJars = lib.strings.concatMapStringsSep ":" (f: "${jogl}/share/java/${f}") joglJarFiles;
|
||||||
|
in stdenvNoCC.mkDerivation rec {
|
||||||
|
pname = "outer-wilds-text-adventure";
|
||||||
|
version = "1.0";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "https://www.mobiusdigitalgames.com/uploads/4/7/3/2/47328935/outerwildstextadventure.application.windows64.zip";
|
||||||
|
hash = "sha256-DZWjAQmraphpBQEKzMWa327DWA3bc8fiSocHe4hF06k=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedNativeBuildInputs = [ jdk jogl ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
cp -r data $out/data
|
||||||
|
mkdir -p $out/share
|
||||||
|
cp -r source $out/share
|
||||||
|
mkdir -p $out/share/doc
|
||||||
|
cp SomeContextForTheThingYouJustDownloaded.txt $out/share/doc/README.txt
|
||||||
|
mkdir -p $out/lib
|
||||||
|
for file in core.jar jl1.0.1.jar jsminim.jar minim.jar mp3spi1.9.5.jar OuterWilds_TextAdventure.jar tritonus_aos.jar tritonus_share.jar; do
|
||||||
|
cp "lib/$file" $out/lib
|
||||||
|
done
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cat > $out/bin/outer-wilds-text-adventure <<EOF
|
||||||
|
#!${bash}/bin/bash
|
||||||
|
cd $out
|
||||||
|
exec ${jdk}/bin/java -Djna.nosys=true -Djava.library.path=$out/lib -cp "$out/lib/OuterWilds_TextAdventure.jar:$out/lib/core.jar:$out/lib/jl1.0.1.jar:$out/lib/jsminim.jar:$out/lib/minim.jar:$out/lib/mp3spi1.9.5.jar:$out/lib/tritonus_aos.jar:$out/lib/tritonus_share.jar:${joglJars}" OuterWilds_TextAdventure
|
||||||
|
EOF
|
||||||
|
chmod +x $out/bin/outer-wilds-text-adventure
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Outer Wilds: A Thrilling Graphical Text Adventure";
|
||||||
|
homepage = "https://www.mobiusdigitalgames.com/outer-wilds-text-adventure.html";
|
||||||
|
license = licenses.unfree;
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue