2021-01-15 04:31:39 +00:00
|
|
|
{lib, stdenv, fetchgit, cmake, SDL2, SDL2_image, boost, libpng, SDL2_mixer
|
2021-01-17 05:49:22 +00:00
|
|
|
, pkg-config, libGLU, libGL, git, jsoncpp }:
|
2020-03-29 19:38:05 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pingus";
|
|
|
|
version = "unstable-0.7.6.0.20191104";
|
|
|
|
|
2021-01-17 05:49:22 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config git ];
|
2020-04-10 21:41:46 +00:00
|
|
|
buildInputs = [ SDL2 SDL2_image boost libpng SDL2_mixer libGLU libGL jsoncpp ];
|
2020-03-29 19:38:05 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://gitlab.com/pingus/pingus/";
|
|
|
|
rev = "709546d9b9c4d6d5f45fc9112b45ac10c7f9417d";
|
2020-06-01 08:59:41 +00:00
|
|
|
sha256 = "11mmzk0766riaw5qyd1r5i7s7vczbbzfccm92bvgrm99iy1sj022";
|
2020-03-29 19:38:05 +00:00
|
|
|
fetchSubmodules = true;
|
2012-12-01 20:18:42 +00:00
|
|
|
};
|
2020-03-29 19:38:05 +00:00
|
|
|
|
2024-02-10 21:35:06 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Fix missing gcc-13 headers
|
|
|
|
sed -e '1i #include <cstdint>' -i src/util/pathname.hpp
|
|
|
|
'';
|
|
|
|
|
2012-12-01 20:18:42 +00:00
|
|
|
meta = {
|
2024-06-07 07:46:46 +00:00
|
|
|
description = "Puzzle game with mechanics similar to Lemmings";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "pingus";
|
2021-01-15 04:31:39 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
license = lib.licenses.gpl3;
|
2012-12-01 20:18:42 +00:00
|
|
|
};
|
|
|
|
}
|