mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
allegro5,
|
|
cmake,
|
|
fetchFromGitLab,
|
|
libGL,
|
|
stdenv,
|
|
libx11,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "animatch";
|
|
version = "1.0.3";
|
|
src = fetchFromGitLab {
|
|
owner = "HolyPangolin";
|
|
repo = "animatch";
|
|
fetchSubmodules = true;
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-zBV45WMAXtCpPPbDpr04K/a9UtZ4KLP9nUauBlbhrFo=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace libsuperderpy/src/3rdparty/cimgui/CMakeLists.txt --replace-fail \
|
|
'cmake_minimum_required(VERSION 3.1)' \
|
|
'cmake_minimum_required(VERSION 4.0)'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
allegro5
|
|
libGL
|
|
libx11
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DLIBSUPERDERPY_STATIC=ON" # recommended by upstream for coexistence with other superderpy games
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
meta = {
|
|
homepage = "https://gitlab.com/HolyPangolin/animatch/";
|
|
description = "Cute match three game for the Librem 5 smartphone";
|
|
mainProgram = "animatch";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ colinsane ];
|
|
};
|
|
})
|