mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
d9b9cdd10c
Without the change the build in `master` fails as https://hydra.nixos.org/build/247719962: In file included from /build/pingus-709546d/src/engine/display/font_description.hpp:23, from /build/pingus-709546d/src/engine/display/font_description.cpp:17: /build/pingus-709546d/src/util/pathname.hpp:79:3: error: 'uint64_t' does not name a type 79 | uint64_t mtime() const; | ^~~~~~~~
28 lines
880 B
Nix
28 lines
880 B
Nix
{lib, stdenv, fetchgit, cmake, SDL2, SDL2_image, boost, libpng, SDL2_mixer
|
|
, pkg-config, libGLU, libGL, git, jsoncpp }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "pingus";
|
|
version = "unstable-0.7.6.0.20191104";
|
|
|
|
nativeBuildInputs = [ cmake pkg-config git ];
|
|
buildInputs = [ SDL2 SDL2_image boost libpng SDL2_mixer libGLU libGL jsoncpp ];
|
|
src = fetchgit {
|
|
url = "https://gitlab.com/pingus/pingus/";
|
|
rev = "709546d9b9c4d6d5f45fc9112b45ac10c7f9417d";
|
|
sha256 = "11mmzk0766riaw5qyd1r5i7s7vczbbzfccm92bvgrm99iy1sj022";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
postPatch = ''
|
|
# Fix missing gcc-13 headers
|
|
sed -e '1i #include <cstdint>' -i src/util/pathname.hpp
|
|
'';
|
|
|
|
meta = {
|
|
description = "A puzzle game with mechanics similar to Lemmings";
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [lib.maintainers.raskin];
|
|
license = lib.licenses.gpl3;
|
|
};
|
|
}
|