This repository has no description
0

Configure Feed

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

games.jazz2: enable multiplayer support

+17 -8
+17 -8
games/jazz2/default.nix
··· 9 9 }: 10 10 11 11 let 12 + jazz2-mp = jazz2.overrideAttrs (old: { 13 + cmakeFlags = old.cmakeFlags ++ [ 14 + (lib.cmakeBool "WITH_MULTIPLAYER" true) 15 + ]; 16 + }); 17 + 12 18 gameData = fetchurl { 13 19 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 20 hash = "sha256-ceeXiGUy5QDq1HQPo5gpyQe2odAK1F5frofBXegeXi8="; 15 21 name = "jazz-jackrabbit-2-tsf.zip"; 16 22 }; 17 23 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 + sourceData = 25 + runCommandLocal "jazz2-source-data" 26 + { 27 + nativeBuildInputs = [ unzip ]; 28 + } 29 + '' 30 + mkdir -p "$out/Jazz² Resurrection/Source" 31 + unzip -j -o ${gameData} -d "$out/Jazz² Resurrection/Source/" 32 + ''; 24 33 25 34 wrapper = writeShellScript "jazz2" '' 26 35 datadir="''${XDG_DATA_HOME:-$HOME/.local/share}/Jazz² Resurrection" ··· 29 38 rm -rf "$datadir/Source" 30 39 ln -sfn "${sourceData}/Jazz² Resurrection/Source" "$datadir/Source" 31 40 fi 32 - exec ${lib.getExe jazz2} "$@" 41 + exec ${lib.getExe jazz2-mp} "$@" 33 42 ''; 34 43 in 35 44 ··· 45 54 ''; 46 55 47 56 meta = jazz2.meta // { 48 - description = "Jazz Jackrabbit 2 (Jazz² Resurrection with game data)"; 57 + description = "Jazz Jackrabbit 2 (Jazz² Resurrection with game data and multiplayer)"; 49 58 }; 50 59 }