2018-03-09 13:50:13 +01:00
|
|
|
{stdenv, fetchurl, fetchpatch, scons, SDL, SDL_image, boost, libpng, SDL_mixer
|
2019-11-10 17:44:34 +01:00
|
|
|
, pkgconfig, libGLU, libGL}:
|
2012-12-01 21:18:42 +01:00
|
|
|
let
|
|
|
|
s = # Generated upstream information
|
2019-08-13 23:52:01 +02:00
|
|
|
{
|
2012-12-01 21:18:42 +01:00
|
|
|
baseName="pingus";
|
|
|
|
version="0.7.6";
|
|
|
|
name="pingus-0.7.6";
|
|
|
|
hash="0q34d2k6anzqvb0mf67x85q92lfx9jr71ry13dlp47jx0x9i573m";
|
|
|
|
url="http://pingus.googlecode.com/files/pingus-0.7.6.tar.bz2";
|
|
|
|
sha256="0q34d2k6anzqvb0mf67x85q92lfx9jr71ry13dlp47jx0x9i573m";
|
|
|
|
};
|
|
|
|
in
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2012-12-01 21:18:42 +01:00
|
|
|
inherit (s) name version;
|
2017-10-10 17:22:48 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2019-11-10 17:44:34 +01:00
|
|
|
buildInputs = [scons SDL SDL_image boost libpng SDL_mixer libGLU libGL];
|
2012-12-01 21:18:42 +01:00
|
|
|
src = fetchurl {
|
|
|
|
inherit (s) url sha256;
|
|
|
|
};
|
2018-03-09 13:50:13 +01:00
|
|
|
patches = [
|
|
|
|
# fix build with gcc7
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://github.com/Pingus/pingus/commit/df6e2f445d3e2925a94d22faeb17be9444513e92.patch;
|
|
|
|
sha256 = "0nqyhznnnvpgfa6rfv8rapjfpw99b67n97jfqp9r3hpib1b3ja6p";
|
|
|
|
})
|
|
|
|
];
|
2019-10-29 23:21:22 +01:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
2019-05-28 23:18:58 +02:00
|
|
|
dontUseSconsInstall = true;
|
2012-12-01 21:18:42 +01:00
|
|
|
meta = {
|
|
|
|
inherit (s) version;
|
|
|
|
description = ''A puzzle game with mechanics similar to Lemmings'';
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
};
|
|
|
|
}
|