nixpkgs/pkgs/games/enigma/default.nix

33 lines
1.4 KiB
Nix
Raw Normal View History

2021-01-10 12:45:48 +00:00
{ stdenv, lib, fetchurl, makeWrapper, pkg-config, gettext, imagemagick, curl, libpng, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, xercesc, xdg_utils, hicolor-icon-theme }:
2021-01-10 01:06:53 +00:00
stdenv.mkDerivation rec {
pname = "enigma";
2021-01-10 12:45:48 +00:00
version = "1.30-alpha";
2021-01-10 01:06:53 +00:00
src = fetchurl {
2021-01-10 12:45:48 +00:00
url = "https://github.com/Enigma-Game/Enigma/releases/download/${version}/${pname}-${version}.tar.gz";
sha256 = "1zyk3j43gzfr1lhc6g13j7qai5f33fv5xm5735nnznaqvaz17949";
2021-01-10 01:06:53 +00:00
};
2021-01-10 12:45:48 +00:00
nativeBuildInputs = [ pkg-config gettext makeWrapper imagemagick ];
buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf libpng xercesc curl xdg_utils ];
2021-01-10 01:06:53 +00:00
2021-01-10 12:45:48 +00:00
# For some reason (might be related to the alpha status), some includes
# which are required by lib-src/enigma-core are not picked up by the
# configure script. Hence we add them manually.
CPPFLAGS = "-I${SDL2.dev}/include/SDL2 -I${SDL2_ttf}/include/SDL2 -I${SDL2_image}/include/SDL2 -I${SDL2_mixer}/include/SDL2";
2021-01-10 01:06:53 +00:00
postInstall = ''
rm -r $out/include
wrapProgram $out/bin/enigma --prefix PATH : "${stdenv.lib.makeBinPath [ xdg_utils ]}"
'';
2021-01-10 12:45:48 +00:00
meta = with lib; {
2021-01-10 01:06:53 +00:00
description = "Puzzle game inspired by Oxyd on the Atari ST and Rock'n'Roll on the Amiga";
2021-01-10 12:45:48 +00:00
license = with licenses; [ gpl2 free ]; # source + bundles libs + art
2021-01-10 01:06:53 +00:00
platforms = platforms.unix;
2021-01-10 12:45:48 +00:00
broken = stdenv.targetPlatform.isDarwin;
2021-01-10 01:06:53 +00:00
maintainers = with maintainers; [ iblech ];
homepage = "https://www.nongnu.org/enigma/";
};
}