nixpkgs/pkgs/games/toppler/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
980 B
Nix
Raw Normal View History

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