Unverified Commit 644c1802 authored by Cosima Neidahl's avatar Cosima Neidahl Committed by GitHub
Browse files

wipeout-rewrite: nixfmt, modernise, bump (#354647)

parents 778f30c0 58b8cb66
Loading
Loading
Loading
Loading
+21 −17
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitHub
, makeWrapper
, Foundation
, glew
, SDL2
, writeShellScript
{
  stdenv,
  lib,
  fetchFromGitHub,
  unstableGitUpdater,
  makeWrapper,
  glew,
  SDL2,
  writeShellScript,
}:

let
@@ -24,13 +25,13 @@ let
in
stdenv.mkDerivation (finalAttrs: {
  pname = "wipeout-rewrite";
  version = "unstable-2023-08-13";
  version = "0-unstable-2024-07-07";

  src = fetchFromGitHub {
    owner = "phoboslab";
    repo = "wipeout-rewrite";
    rev = "7a9f757a79d5c6806252cc1268bda5cdef463e23";
    hash = "sha256-21IG9mZPGgRhVkT087G+Bz/zLkknkHKGmWjSpcLw8vE=";
    rev = "a372b51f59217da4a5208352123a4acca800783c";
    hash = "sha256-RJrWOTb5cZ2rSgO/J8qW5ifMJryBaK6MDtYwQZfghS0=";
  };

  enableParallelBuilding = true;
@@ -42,10 +43,11 @@ stdenv.mkDerivation (finalAttrs: {
  buildInputs = [
    glew
    SDL2
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
    Foundation
  ];

  # Force this to empty, so assets are looked up in CWD instead of $out/bin
  env.NIX_CFLAGS_COMPILE = "-DPATH_ASSETS=";

  installPhase = ''
    runHook preInstall

@@ -60,12 +62,14 @@ stdenv.mkDerivation (finalAttrs: {
    runHook postInstall
  '';

  meta = with lib; {
  passthru.updateScript = unstableGitUpdater { };

  meta = {
    mainProgram = "wipegame";
    description = "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;
    license = lib.licenses.unfree;
    maintainers = with lib.maintainers; [ OPNA2608 ];
    platforms = lib.platforms.all;
  };
})
+0 −4
Original line number Diff line number Diff line
@@ -16820,10 +16820,6 @@ with pkgs;
  pmars-x11 = pmars.override { enableXwinGraphics = true; };
  wipeout-rewrite = callPackage ../games/wipeout-rewrite {
    inherit (darwin.apple_sdk.frameworks) Foundation;
  };
  ### GAMES/DOOM-PORTS
  doomseeker = qt5.callPackage ../games/doom-ports/doomseeker { };