nanosaur: unstable-2021-12-03 -> 1.4.4-unstable-2023-05-21

Fixes build failure against `gcc-13` as
https://hydra.nixos.org/build/247659575:

    /build/source/extern/Pomme/src/PommeDebug.h:21:34: error: 'uint32_t' was not declared in this scope
       21 |         std::string FourCCString(uint32_t t, char filler = '?');
          |                                  ^~~~~~~~
This commit is contained in:
Sergei Trofimovich 2024-02-10 12:12:35 +00:00
parent 2394210484
commit c42fbc799f

View file

@ -1,14 +1,14 @@
{ lib, stdenv, fetchFromGitHub, SDL2, cmake, makeWrapper }:
{ lib, stdenv, fetchFromGitHub, SDL2, cmake, makeWrapper, unstableGitUpdater }:
stdenv.mkDerivation rec {
pname = "nanosaur";
version = "unstable-2021-12-03";
version = "1.4.4-unstable-2023-05-21";
src = fetchFromGitHub {
owner = "jorio";
repo = pname;
rev = "b567a3e6d7fd1cbc43800cfaa1bd82f31c6d9fae";
sha256 = "sha256-P/o6uSwUV6O8u8XNXN9YyA8XlgEUkqGj3SC+oD2/GKQ=";
rev = "c9753648996b09a17c8bd526d8309b73fb14c435";
sha256 = "sha256-0xG/HSUF65eV+fSJ2geDv5VUxTeso9dulrLgE1KNDhc=";
fetchSubmodules = true;
};
@ -27,11 +27,13 @@ stdenv.mkDerivation rec {
mv Data ReadMe.txt "$out/share/Nanosaur/"
install -Dm755 {.,$out/bin}/Nanosaur
wrapProgram $out/bin/Nanosaur --chdir "$out/share/Nanosaur"
install -Dm644 $src/packaging/nanosaur.desktop $out/share/applications/nanosaur.desktop
install -Dm644 $src/packaging/nanosaur-desktopicon.png $out/share/pixmaps/nanosaur-desktopicon.png
install -Dm644 $src/packaging/io.jor.nanosaur.desktop $out/share/applications/nanosaur.desktop
install -Dm644 $src/packaging/io.jor.nanosaur.png $out/share/pixmaps/nanosaur-desktopicon.png
runHook postInstall
'';
passthru.updateScript = unstableGitUpdater { };
meta = with lib; {
description = "A port of Nanosaur, a 1998 Macintosh game by Pangea Software, for modern operating systems";
longDescription = ''
@ -41,6 +43,7 @@ stdenv.mkDerivation rec {
'';
homepage = "https://github.com/jorio/Nanosaur";
license = licenses.cc-by-sa-40;
mainProgram = "Nanosaur";
maintainers = with maintainers; [ lux ];
platforms = platforms.linux;
};