Merge pull request #267948 from uninsane/pr-animatch
animatch: init at 1.0.3
This commit is contained in:
commit
b7137a71c1
3 changed files with 117 additions and 13 deletions
|
@ -1,10 +1,41 @@
|
|||
{ lib, stdenv, fetchFromGitHub, fetchpatch, texinfo, libXext, xorgproto, libX11
|
||||
, libXpm, libXt, libXcursor, alsa-lib, cmake, zlib, libpng, libvorbis
|
||||
, libXxf86dga, libXxf86misc
|
||||
, libXxf86vm, openal, libGLU, libGL, libjpeg, flac
|
||||
, libXi, libXfixes, freetype, libopus, libtheora
|
||||
, physfs, enet, pkg-config, gtk3, pcre, libpulseaudio, libpthreadstubs
|
||||
{ lib
|
||||
, alsa-lib
|
||||
, cmake
|
||||
, enet
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, flac
|
||||
, freetype
|
||||
, gtk3
|
||||
, libGL
|
||||
, libGLU
|
||||
, libjpeg
|
||||
, libopus
|
||||
, libpng
|
||||
, libpthreadstubs
|
||||
, libpulseaudio
|
||||
, libtheora
|
||||
, libvorbis
|
||||
, libwebp
|
||||
, libX11
|
||||
, libXcursor
|
||||
, libXdmcp
|
||||
, libXext
|
||||
, libXfixes
|
||||
, libXi
|
||||
, libXpm
|
||||
, libXt
|
||||
, libXxf86dga
|
||||
, libXxf86misc
|
||||
, libXxf86vm
|
||||
, openal
|
||||
, pcre
|
||||
, physfs
|
||||
, pkg-config
|
||||
, stdenv
|
||||
, texinfo
|
||||
, xorgproto
|
||||
, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -18,15 +49,45 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-uNcaeTelFNfg+YjPYc7nK4TrFDxJsEuPhsF8x1cvIYQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
texinfo zlib libpng libvorbis openal libGLU libGL
|
||||
libjpeg flac enet libtheora freetype physfs libopus
|
||||
gtk3 pcre
|
||||
enet
|
||||
flac
|
||||
freetype
|
||||
gtk3
|
||||
libGL
|
||||
libGLU
|
||||
libjpeg
|
||||
libopus
|
||||
libpng
|
||||
libtheora
|
||||
libvorbis
|
||||
libwebp
|
||||
openal
|
||||
pcre
|
||||
physfs
|
||||
texinfo
|
||||
zlib
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
libXext xorgproto libX11 libXpm libXt libXcursor alsa-lib
|
||||
libXxf86dga libXxf86misc libXxf86vm libXi libXfixes
|
||||
libXdmcp libpulseaudio libpthreadstubs
|
||||
alsa-lib
|
||||
libpthreadstubs
|
||||
libpulseaudio
|
||||
libX11
|
||||
libXcursor
|
||||
libXdmcp
|
||||
libXext
|
||||
libXfixes
|
||||
libXi
|
||||
libXpm
|
||||
libXt
|
||||
libXxf86dga
|
||||
libXxf86misc
|
||||
libXxf86vm
|
||||
xorgproto
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
|
41
pkgs/games/animatch/default.nix
Normal file
41
pkgs/games/animatch/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ lib
|
||||
, allegro5
|
||||
, cmake
|
||||
, fetchFromGitLab
|
||||
, libGL
|
||||
, stdenv
|
||||
, xorg
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "animatch";
|
||||
version = "1.0.3";
|
||||
src = fetchFromGitLab {
|
||||
owner = "HolyPangolin";
|
||||
repo = "animatch";
|
||||
fetchSubmodules = true;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-zBV45WMAXtCpPPbDpr04K/a9UtZ4KLP9nUauBlbhrFo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
allegro5
|
||||
libGL
|
||||
xorg.libX11
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DLIBSUPERDERPY_STATIC=ON" # recommended by upstream for coexistence with other superderpy games
|
||||
];
|
||||
|
||||
meta = {
|
||||
homepage = "https://gitlab.com/HolyPangolin/animatch/";
|
||||
description = "A cute match three game for the Librem 5 smartphone";
|
||||
license = with lib.licenses; [ gpl3Plus ];
|
||||
maintainers = with lib.maintainers; [ colinsane ];
|
||||
};
|
||||
}
|
||||
|
|
@ -37559,6 +37559,8 @@ with pkgs;
|
|||
|
||||
angband = callPackage ../games/angband { };
|
||||
|
||||
animatch = callPackage ../games/animatch { };
|
||||
|
||||
anki = callPackage ../games/anki {
|
||||
inherit (darwin.apple_sdk.frameworks) AVKit CoreAudio;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue