This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

games.jazz2: add jazz jackrabbit 2 with game data

+50
+50
games/jazz2/default.nix
··· 1 + { 2 + fetchurl, 3 + jazz2, 4 + lib, 5 + runCommandLocal, 6 + stdenvNoCC, 7 + unzip, 8 + writeShellScript, 9 + }: 10 + 11 + let 12 + gameData = fetchurl { 13 + url = "https://archive.org/download/jazz-jackrabbit-2-1.24-the-secret-files-plus/Jazz%20Jackrabbit%202%201.24%20The%20Secret%20Files%20Plus.zip"; 14 + hash = "sha256-ceeXiGUy5QDq1HQPo5gpyQe2odAK1F5frofBXegeXi8="; 15 + name = "jazz-jackrabbit-2-tsf.zip"; 16 + }; 17 + 18 + sourceData = runCommandLocal "jazz2-source-data" { 19 + nativeBuildInputs = [ unzip ]; 20 + } '' 21 + mkdir -p "$out/Jazz² Resurrection/Source" 22 + unzip -j -o ${gameData} -d "$out/Jazz² Resurrection/Source/" 23 + ''; 24 + 25 + wrapper = writeShellScript "jazz2" '' 26 + datadir="''${XDG_DATA_HOME:-$HOME/.local/share}/Jazz² Resurrection" 27 + if [ ! -e "$datadir/Source/Anims.j2a" ]; then 28 + mkdir -p "$datadir" 29 + rm -rf "$datadir/Source" 30 + ln -sfn "${sourceData}/Jazz² Resurrection/Source" "$datadir/Source" 31 + fi 32 + exec ${lib.getExe jazz2} "$@" 33 + ''; 34 + in 35 + 36 + stdenvNoCC.mkDerivation { 37 + pname = "jazz2-with-gamedata"; 38 + inherit (jazz2) version; 39 + 40 + dontUnpack = true; 41 + 42 + installPhase = '' 43 + mkdir -p $out/bin 44 + ln -s ${wrapper} $out/bin/jazz2 45 + ''; 46 + 47 + meta = jazz2.meta // { 48 + description = "Jazz Jackrabbit 2 (Jazz² Resurrection with game data)"; 49 + }; 50 + }