depot/third_party/nixpkgs/pkgs/games/pingus/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

28 lines
906 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 = "Puzzle game with mechanics similar to Lemmings";
mainProgram = "pingus";
platforms = lib.platforms.linux;
maintainers = [lib.maintainers.raskin];
license = lib.licenses.gpl3;
};
}