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
1001 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
}:
2024-02-19 15:41:27 +00:00
stdenv.mkDerivation (finalAttrs: {
2019-07-02 21:58:11 +00:00
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";
2024-02-19 15:41:27 +00:00
rev = "v${finalAttrs.version}";
2022-02-07 17:49:38 +00:00
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;
};
2024-02-19 15:41:27 +00:00
})