nanosaur2: 2.1.0 -> 2.1.0-unstable-2023-05-21
This fixes `gcc-13` build failure on `master` as https://hydra.nixos.org/build/249142729: In file included from /build/source/extern/Pomme/src/PommeDebug.cpp:1: /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:
parent
1ab54f84dc
commit
b0ebb0636c
1 changed files with 9 additions and 6 deletions
|
@ -1,14 +1,14 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, SDL2, cmake, makeWrapper }:
|
{ lib, stdenv, fetchFromGitHub, SDL2, cmake, makeWrapper, unstableGitUpdater }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "nanosaur2";
|
pname = "nanosaur2";
|
||||||
version = "2.1.0";
|
version = "2.1.0-unstable-2023-05-21";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jorio";
|
owner = "jorio";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "72d93ed08148d81aa89bab511a9650d7b929d4c7";
|
||||||
sha256 = "sha256-UY+fyn8BA/HfCd2LCj5cfGmQACKUICH6CDCW4q6YDkg=";
|
hash = "sha256-1AvM2KTQB9aUYB0e/7Y6h18yQvzsxMOgGkF9zPgTzFo=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -27,11 +27,13 @@ stdenv.mkDerivation rec {
|
||||||
mv Data ReadMe.txt "$out/share/Nanosaur2/"
|
mv Data ReadMe.txt "$out/share/Nanosaur2/"
|
||||||
install -Dm755 {.,$out/bin}/Nanosaur2
|
install -Dm755 {.,$out/bin}/Nanosaur2
|
||||||
wrapProgram $out/bin/Nanosaur2 --chdir "$out/share/Nanosaur2"
|
wrapProgram $out/bin/Nanosaur2 --chdir "$out/share/Nanosaur2"
|
||||||
install -Dm644 $src/packaging/nanosaur2.desktop $out/share/applications/nanosaur2.desktop
|
install -Dm644 $src/packaging/io.jor.nanosaur2.desktop $out/share/applications/nanosaur2.desktop
|
||||||
install -Dm644 $src/packaging/nanosaur2-desktopicon.png $out/share/pixmaps/nanosaur2-desktopicon.png
|
install -Dm644 $src/packaging/io.jor.nanosaur2.png $out/share/pixmaps/nanosaur2.png
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.updateScript = unstableGitUpdater { };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A port of Nanosaur2, a 2004 Macintosh game by Pangea Software, for modern operating systems";
|
description = "A port of Nanosaur2, a 2004 Macintosh game by Pangea Software, for modern operating systems";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -41,6 +43,7 @@ stdenv.mkDerivation rec {
|
||||||
'';
|
'';
|
||||||
homepage = "https://github.com/jorio/Nanosaur2";
|
homepage = "https://github.com/jorio/Nanosaur2";
|
||||||
license = licenses.cc-by-sa-40;
|
license = licenses.cc-by-sa-40;
|
||||||
|
mainProgram = "Nanosaur2";
|
||||||
maintainers = with maintainers; [ lux ];
|
maintainers = with maintainers; [ lux ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue