Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
61 lines
999 B
Nix
61 lines
999 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
|
|
, pkg-config
|
|
, gettext
|
|
, povray
|
|
, imagemagick
|
|
, gimp
|
|
|
|
, SDL2
|
|
, SDL2_mixer
|
|
, SDL2_image
|
|
, libpng
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "toppler";
|
|
version = "1.3";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "roever";
|
|
repo = "toppler";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-ecEaELu52Nmov/BD9VzcUw6wyWeHJcsKQkEzTnaW330=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
gettext
|
|
povray
|
|
imagemagick
|
|
gimp
|
|
];
|
|
|
|
buildInputs = [
|
|
SDL2
|
|
SDL2_mixer
|
|
SDL2_image
|
|
libpng
|
|
zlib
|
|
];
|
|
|
|
# GIMP needs a writable home
|
|
preBuild = ''
|
|
export HOME=$(mktemp -d)
|
|
'';
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
meta = with lib; {
|
|
description = "Jump and run game, reimplementation of Tower Toppler/Nebulus";
|
|
homepage = "https://gitlab.com/roever/toppler";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ fgaz ];
|
|
platforms = platforms.all;
|
|
};
|
|
})
|