diff options
author | davidak <davidak@users.noreply.github.com> | 2021-02-21 04:51:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-21 04:51:43 +0100 |
commit | 8f42d3ed16c162305e214e4df9a540970f44eb61 (patch) | |
tree | 904a1cbaece39d555ed7f76db2f6965553f2174d /pkgs/games | |
parent | c7c0037cf250ea7f3f44e13c9341f74b611e9578 (diff) | |
parent | 725051e81cdd650329e948f481b93278d3ef0670 (diff) |
Merge pull request #108902 from iblech/patch-enigma
enigma: init at 1.21
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/enigma/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/games/enigma/default.nix b/pkgs/games/enigma/default.nix new file mode 100644 index 0000000000000..1912f87027504 --- /dev/null +++ b/pkgs/games/enigma/default.nix @@ -0,0 +1,32 @@ +{ stdenv, lib, fetchurl, makeWrapper, pkg-config, gettext, imagemagick, curl, libpng, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, xercesc, xdg_utils, hicolor-icon-theme }: +stdenv.mkDerivation rec { + pname = "enigma"; + version = "1.30-alpha"; + + src = fetchurl { + url = "https://github.com/Enigma-Game/Enigma/releases/download/${version}/${pname}-${version}.tar.gz"; + sha256 = "1zyk3j43gzfr1lhc6g13j7qai5f33fv5xm5735nnznaqvaz17949"; + }; + + nativeBuildInputs = [ pkg-config gettext makeWrapper imagemagick ]; + buildInputs = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf libpng xercesc curl xdg_utils ]; + + # 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"; + + postInstall = '' + rm -r $out/include + wrapProgram $out/bin/enigma --prefix PATH : "${stdenv.lib.makeBinPath [ xdg_utils ]}" + ''; + + meta = with lib; { + description = "Puzzle game inspired by Oxyd on the Atari ST and Rock'n'Roll on the Amiga"; + license = with licenses; [ gpl2 free ]; # source + bundles libs + art + platforms = platforms.unix; + broken = stdenv.targetPlatform.isDarwin; + maintainers = with maintainers; [ iblech ]; + homepage = "https://www.nongnu.org/enigma/"; + }; +} |