2022-02-07 18:49:38 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
|
|
|
|
, pkg-config
|
|
|
|
, gettext
|
|
|
|
, povray
|
|
|
|
, imagemagick
|
|
|
|
, gimp
|
|
|
|
|
|
|
|
, SDL2
|
|
|
|
, SDL2_mixer
|
|
|
|
, SDL2_image
|
|
|
|
, libpng
|
2019-07-02 23:58:11 +02:00
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "toppler";
|
2022-02-07 18:49:38 +01:00
|
|
|
version = "1.3";
|
2019-07-02 23:58:11 +02:00
|
|
|
|
2022-02-07 18:49:38 +01:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "roever";
|
|
|
|
repo = "toppler";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-ecEaELu52Nmov/BD9VzcUw6wyWeHJcsKQkEzTnaW330=";
|
2019-07-02 23:58:11 +02:00
|
|
|
};
|
|
|
|
|
2022-02-07 18:49:38 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
gettext
|
|
|
|
povray
|
|
|
|
imagemagick
|
|
|
|
gimp
|
|
|
|
];
|
|
|
|
|
2019-07-02 23:58:11 +02:00
|
|
|
buildInputs = [
|
2022-02-07 18:49:38 +01:00
|
|
|
SDL2
|
|
|
|
SDL2_mixer
|
|
|
|
SDL2_image
|
|
|
|
libpng
|
2019-07-02 23:58:11 +02:00
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
2022-02-07 18:49:38 +01:00
|
|
|
# GIMP needs a writable home
|
|
|
|
preBuild = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
2021-05-26 07:41:48 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-07-02 23:58:11 +02:00
|
|
|
description = "Jump and run game, reimplementation of Tower Toppler/Nebulus";
|
2022-02-07 18:49:38 +01:00
|
|
|
homepage = "https://gitlab.com/roever/toppler";
|
|
|
|
license = licenses.gpl2Plus;
|
2019-07-02 23:58:11 +02:00
|
|
|
maintainers = with maintainers; [ fgaz ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|