diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-09-14 13:17:39 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-09-14 13:17:39 +0000 |
commit | 56e87d10ec12e00eab5c4b5710e01ab50eec267f (patch) | |
tree | baff33c3da97619d02441379b3f0f369da8f3d5a /nixpkgs/pkgs/games | |
parent | cc14c6e02d8424c1d446d248f71e08243181af8d (diff) | |
parent | 3a2786eea085f040a66ecde1bc3ddc7099f6dbeb (diff) | |
download | nixlib-56e87d10ec12e00eab5c4b5710e01ab50eec267f.tar nixlib-56e87d10ec12e00eab5c4b5710e01ab50eec267f.tar.gz nixlib-56e87d10ec12e00eab5c4b5710e01ab50eec267f.tar.bz2 nixlib-56e87d10ec12e00eab5c4b5710e01ab50eec267f.tar.lz nixlib-56e87d10ec12e00eab5c4b5710e01ab50eec267f.tar.xz nixlib-56e87d10ec12e00eab5c4b5710e01ab50eec267f.tar.zst nixlib-56e87d10ec12e00eab5c4b5710e01ab50eec267f.zip |
Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/games')
-rw-r--r-- | nixpkgs/pkgs/games/performous/default.nix | 22 | ||||
-rw-r--r-- | nixpkgs/pkgs/games/performous/performous-cmake.patch | 36 | ||||
-rw-r--r-- | nixpkgs/pkgs/games/quakespasm/default.nix | 4 | ||||
-rw-r--r-- | nixpkgs/pkgs/games/stockfish/default.nix | 8 | ||||
-rw-r--r-- | nixpkgs/pkgs/games/wipeout-rewrite/default.nix | 71 |
5 files changed, 107 insertions, 34 deletions
diff --git a/nixpkgs/pkgs/games/performous/default.nix b/nixpkgs/pkgs/games/performous/default.nix index 2faa90006b55..c82e1d02afc7 100644 --- a/nixpkgs/pkgs/games/performous/default.nix +++ b/nixpkgs/pkgs/games/performous/default.nix @@ -5,9 +5,9 @@ , aubio , boost , cmake -, ffmpeg_4 +, ffmpeg +, fmt , gettext -, git , glew , glibmm , glm @@ -15,6 +15,7 @@ , libepoxy , librsvg , libxmlxx +, nlohmann_json , pango , pkg-config , portaudio @@ -22,17 +23,17 @@ stdenv.mkDerivation rec { pname = "performous"; - version = "1.2.0"; + version = "1.3.0"; src = fetchFromGitHub { - owner = pname; - repo = pname; + owner = "performous"; + repo = "performous"; rev = "refs/tags/${version}"; - hash = "sha256-ueTSirov/lj4/IzaMqHitbOqx8qqUpsTghcb9DUnNEg="; + hash = "sha256-y7kxLht15vULN9NxM0wzj9+7Uq4/3D5j9oBEnrTIwQ8="; }; cedSrc = fetchFromGitHub { - owner = pname; + owner = "performous"; repo = "compact_enc_det"; rev = "9ca1351fe0b1e85992a407b0fc54a63e9b3adc6e"; hash = "sha256-ztfeblR4YnB5+lb+rwOQJjogl+C9vtPH9IVnYO7oxec="; @@ -46,6 +47,9 @@ stdenv.mkDerivation rec { postPatch = '' mkdir ced-src cp -R ${cedSrc}/* ced-src + + substituteInPlace data/CMakeLists.txt \ + --replace "/usr" "$out" ''; nativeBuildInputs = [ @@ -58,7 +62,8 @@ stdenv.mkDerivation rec { SDL2 aubio boost - ffmpeg_4 + ffmpeg + fmt glew glibmm glm @@ -66,6 +71,7 @@ stdenv.mkDerivation rec { libepoxy librsvg libxmlxx + nlohmann_json pango portaudio ]; diff --git a/nixpkgs/pkgs/games/performous/performous-cmake.patch b/nixpkgs/pkgs/games/performous/performous-cmake.patch index 5c1a4c91012b..dae399cd54de 100644 --- a/nixpkgs/pkgs/games/performous/performous-cmake.patch +++ b/nixpkgs/pkgs/games/performous/performous-cmake.patch @@ -1,21 +1,17 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 48af2a89..43786c31 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -75,15 +75,7 @@ else() - message(STATUS "Localization disabled: Gettext tools (msgfmt) missing") - endif() - --include(FetchContent) --FetchContent_Declare(ced-sources -- GIT_REPOSITORY https://github.com/performous/compact_enc_det.git -- #https://github.com/google/compact_enc_det.git -- GIT_TAG master -- SOURCE_DIR ced-src --) +diff --git a/cmake/Modules/FindCed.cmake b/cmake/Modules/FindCed.cmake +index d6e2aca..3085adb 100644 +--- a/cmake/Modules/FindCed.cmake ++++ b/cmake/Modules/FindCed.cmake +@@ -1,11 +1 @@ +-include(LibFetchMacros) +- +-set(Ced_GIT_VERSION "master") - --FetchContent_MakeAvailable(ced-sources) -+add_subdirectory(ced-src) - - option(USE_SELF_BUILT_AUBIO "Use custom aubio local build instead of using system lib (if available)" FALSE) - +-libfetch_git_pkg(Ced +- REPOSITORY ${SELF_BUILT_GIT_BASE}/compact_enc_det.git +- #https://github.com/google/compact_enc_det.git +- REFERENCE ${Ced_GIT_VERSION} +- FIND_PATH compact_enc_det/compact_enc_det.h +-) +-message(STATUS "Found Google CED ${Ced_VERSION}") ++add_subdirectory(../ced-src ced-src) diff --git a/nixpkgs/pkgs/games/quakespasm/default.nix b/nixpkgs/pkgs/games/quakespasm/default.nix index 51d0528ac933..b9541d1b274e 100644 --- a/nixpkgs/pkgs/games/quakespasm/default.nix +++ b/nixpkgs/pkgs/games/quakespasm/default.nix @@ -6,11 +6,11 @@ stdenv.mkDerivation rec { pname = "quakespasm"; - version = "0.95.1"; + version = "0.96.0"; src = fetchurl { url = "mirror://sourceforge/quakespasm/quakespasm-${version}.tar.gz"; - sha256 = "sha256-hBmEV3s65yQysMiq4zEP4swfCgCCiT5dzZdhg7bSNOI="; + sha256 = "sha256-Sa4lLALB3xpMGVjpKnzGl1OBEJcLOHDcFGEFsO0wwOw="; }; sourceRoot = "${pname}-${version}/Quake"; diff --git a/nixpkgs/pkgs/games/stockfish/default.nix b/nixpkgs/pkgs/games/stockfish/default.nix index 2f40b2a34697..bd42da9c7028 100644 --- a/nixpkgs/pkgs/games/stockfish/default.nix +++ b/nixpkgs/pkgs/games/stockfish/default.nix @@ -11,23 +11,23 @@ let if stdenv.isAarch64 then "armv8" else "unknown"; - nnueFile = "nn-6877cd24400e.nnue"; + nnueFile = "nn-5af11540bbfe.nnue"; nnue = fetchurl { name = nnueFile; url = "https://tests.stockfishchess.org/api/nn/${nnueFile}"; - sha256 = "sha256-aHfNJEAOAbGf8SrjBoriQhUoAr3TMOZve2cDhlJR1uM="; + sha256 = "sha256-WvEVQLv+/LVOOMXdAAyrS0ad+nWZodVb5dJyLCCokps="; }; in stdenv.mkDerivation rec { pname = "stockfish"; - version = "15"; + version = "16"; src = fetchFromGitHub { owner = "official-stockfish"; repo = "Stockfish"; rev = "sf_${version}"; - sha256 = "sha256-sK4Jw9BPGRvlm9oIcgGcmHe8G4GR4cEuD8MtDrHZKew="; + sha256 = "sha256-ASy2vIP94lnSKgxixK1GoC84yAysaJpxeyuggV4MrP4="; }; # This addresses a linker issue with Darwin diff --git a/nixpkgs/pkgs/games/wipeout-rewrite/default.nix b/nixpkgs/pkgs/games/wipeout-rewrite/default.nix new file mode 100644 index 000000000000..16703fad517b --- /dev/null +++ b/nixpkgs/pkgs/games/wipeout-rewrite/default.nix @@ -0,0 +1,71 @@ +{ stdenv +, lib +, fetchFromGitHub +, makeWrapper +, Foundation +, glew +, SDL2 +, writeShellScript +}: + +let + datadir = "\"\${XDG_DATA_HOME:-$HOME/.local/share}\"/wipeout-rewrite"; + datadirCheck = writeShellScript "wipeout-rewrite-check-datadir.sh" '' + datadir=${datadir} + + if [ ! -d "$datadir" ]; then + echo "[Wrapper] Creating data directory $datadir" + mkdir -p "$datadir" + fi + + echo "[Wrapper] Remember to put your game assets into $datadir/wipeout if you haven't done so yet!" + echo "[Wrapper] Check https://github.com/phoboslab/wipeout-rewrite#running for the required format." + ''; +in +stdenv.mkDerivation (finalAttrs: { + pname = "wipeout-rewrite"; + version = "unstable-2023-08-13"; + + src = fetchFromGitHub { + owner = "phoboslab"; + repo = "wipeout-rewrite"; + rev = "7a9f757a79d5c6806252cc1268bda5cdef463e23"; + hash = "sha256-21IG9mZPGgRhVkT087G+Bz/zLkknkHKGmWjSpcLw8vE="; + }; + + enableParallelBuilding = true; + + nativeBuildInputs = [ + makeWrapper + ]; + + buildInputs = [ + glew + SDL2 + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ + Foundation + ]; + + installPhase = '' + runHook preInstall + + install -Dm755 wipegame $out/bin/wipegame + + # I can't get --chdir to not expand the bash variables in datadir at build time (so they point to /homeless-shelter) + # or put them inside single quotes (breaking the expansion at runtime) + wrapProgram $out/bin/wipegame \ + --run '${datadirCheck}' \ + --run 'cd ${datadir}' + + runHook postInstall + ''; + + meta = with lib; { + mainProgram = "wipegame"; + description = "A re-implementation of the 1995 PSX game wipEout"; + homepage = "https://github.com/phoboslab/wipeout-rewrite"; + license = licenses.unfree; + maintainers = with maintainers; [ OPNA2608 ]; + platforms = platforms.all; + }; +}) |