animatch: init at 1.0.3
This commit is contained in:
parent
8111757357
commit
29c5811b68
60
pkgs/additional/animatch/default.nix
Normal file
60
pkgs/additional/animatch/default.nix
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
{ lib, stdenv
|
||||||
|
, allegro5
|
||||||
|
, cmake
|
||||||
|
, fetchFromGitLab
|
||||||
|
, libGL
|
||||||
|
, libwebp
|
||||||
|
, SDL2
|
||||||
|
, 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
|
||||||
|
] ++ allegro5.nativeBuildInputs;
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
# allegro5
|
||||||
|
libGL
|
||||||
|
xorg.libX11
|
||||||
|
|
||||||
|
# needed when building allegro.
|
||||||
|
# maybe if i add these missing deps to the nixpkgs allegro5 package i can link directly
|
||||||
|
SDL2
|
||||||
|
libwebp
|
||||||
|
] ++ allegro5.buildInputs;
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DLIBSUPERDERPY_STATIC=ON" # recommended by upstream for coexistence with other superderpy games
|
||||||
|
"-DLIBSUPERDERPY_EMBEDDED_ALLEGRO=ON"
|
||||||
|
"-DALLEGRO_SDL=ON"
|
||||||
|
];
|
||||||
|
|
||||||
|
# debugging:
|
||||||
|
# NIX_CFLAGS_COMPILE = "-Og -ggdb";
|
||||||
|
# dontStrip = true;
|
||||||
|
#
|
||||||
|
# run with:
|
||||||
|
# SDL_VIDEODRIVER=wayland animatch --debug --windowed
|
||||||
|
meta = {
|
||||||
|
homepage = "https://gitlab.com/HolyPangolin/animatch/";
|
||||||
|
description = "a match-three game with cute animals";
|
||||||
|
longDescription = ''
|
||||||
|
The game was made for [Purism, SPC](https://puri.sm/)
|
||||||
|
by [Holy Pangolin](https://holypangolin.com/) studio,
|
||||||
|
consisting of [Agata Nawrot](https://agatanawrot.com/)
|
||||||
|
and [Sebastian Krzyszkowiak](https://dosowisko.net/).
|
||||||
|
'';
|
||||||
|
license = with lib.licenses; [ gpl3Plus ];
|
||||||
|
maintainers = with lib.maintainers; [ colinsane ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -21,6 +21,7 @@ let
|
||||||
|
|
||||||
### ADDITIONAL PACKAGES
|
### ADDITIONAL PACKAGES
|
||||||
alsa-ucm-conf-sane = callPackage ./additional/alsa-ucm-conf-sane { };
|
alsa-ucm-conf-sane = callPackage ./additional/alsa-ucm-conf-sane { };
|
||||||
|
animatch = callPackage ./additional/animatch { };
|
||||||
# TODO: move target flags to upstream PR and re-enable this bonsai
|
# TODO: move target flags to upstream PR and re-enable this bonsai
|
||||||
# bonsai = unpatched.bonsai or (callPackage ./additional/bonsai { });
|
# bonsai = unpatched.bonsai or (callPackage ./additional/bonsai { });
|
||||||
bonsai = callPackage ./additional/bonsai { };
|
bonsai = callPackage ./additional/bonsai { };
|
||||||
|
|
Loading…
Reference in New Issue
Block a user