1- { stdenv
2- , lib
3- , fetchFromGitHub
4- , makeWrapper
5- , Foundation
6- , glew
7- , SDL2
8- , writeShellScript
1+ {
2+ stdenv ,
3+ lib ,
4+ fetchFromGitHub ,
5+ unstableGitUpdater ,
6+ makeWrapper ,
7+ glew ,
8+ SDL2 ,
9+ writeShellScript ,
910} :
1011
1112let
2425in
2526stdenv . mkDerivation ( finalAttrs : {
2627 pname = "wipeout-rewrite" ;
27- version = "unstable-2023-08-13 " ;
28+ version = "0- unstable-2024-07-07 " ;
2829
2930 src = fetchFromGitHub {
3031 owner = "phoboslab" ;
3132 repo = "wipeout-rewrite" ;
32- rev = "7a9f757a79d5c6806252cc1268bda5cdef463e23 " ;
33- hash = "sha256-21IG9mZPGgRhVkT087G+Bz/zLkknkHKGmWjSpcLw8vE =" ;
33+ rev = "a372b51f59217da4a5208352123a4acca800783c " ;
34+ hash = "sha256-RJrWOTb5cZ2rSgO/J8qW5ifMJryBaK6MDtYwQZfghS0 =" ;
3435 } ;
3536
3637 enableParallelBuilding = true ;
@@ -42,10 +43,11 @@ stdenv.mkDerivation (finalAttrs: {
4243 buildInputs = [
4344 glew
4445 SDL2
45- ] ++ lib . optionals stdenv . hostPlatform . isDarwin [
46- Foundation
4746 ] ;
4847
48+ # Force this to empty, so assets are looked up in CWD instead of $out/bin
49+ env . NIX_CFLAGS_COMPILE = "-DPATH_ASSETS=" ;
50+
4951 installPhase = ''
5052 runHook preInstall
5153
@@ -60,12 +62,14 @@ stdenv.mkDerivation (finalAttrs: {
6062 runHook postInstall
6163 '' ;
6264
63- meta = with lib ; {
65+ passthru . updateScript = unstableGitUpdater { } ;
66+
67+ meta = {
6468 mainProgram = "wipegame" ;
6569 description = "Re-implementation of the 1995 PSX game wipEout" ;
6670 homepage = "https://github.com/phoboslab/wipeout-rewrite" ;
67- license = licenses . unfree ;
68- maintainers = with maintainers ; [ OPNA2608 ] ;
69- platforms = platforms . all ;
71+ license = lib . licenses . unfree ;
72+ maintainers = with lib . maintainers ; [ OPNA2608 ] ;
73+ platforms = lib . platforms . all ;
7074 } ;
7175} )
0 commit comments