Files
nixpkgs/pkgs/by-name/fr/frogatto/engine.nix
klea 3bfcc7e504 frogatto: fix invalid unstable version scheme
As part of https://github.com/NixOS/nixpkgs/issues/541820

Both the game, and the engine seem to have a 4.0.0 version, but it was
made 2023-04-17, when the version we're using is older, so 0 it is.

Those releases are:
- https://github.com/frogatto/frogatto/releases/tag/4.0.0
- https://github.com/anura-engine/anura/releases/tag/v4.0.0

The game has a 1.3.1 version, here: https://github.com/frogatto/frogatto/releases/tag/1.3.1
2026-08-23 11:08:23 +00:00

69 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
which,
boost,
SDL2,
SDL2_image,
SDL2_mixer,
SDL2_ttf,
glew,
zlib,
icu,
pkg-config,
cairo,
libvpx,
glm,
}:
stdenv.mkDerivation {
pname = "anura-engine";
version = "0-unstable-2023-02-27";
src = fetchFromGitHub {
owner = "anura-engine";
repo = "anura";
rev = "65d85b6646099db1d5cd25d31321bb434a3f94f1";
sha256 = "sha256-hb4Sn7uI+eXLaGb4zkEy4w+ByQJ6FqkoMUYFsyiFCeE=";
fetchSubmodules = true;
};
nativeBuildInputs = [
which
pkg-config
];
buildInputs = [
boost
SDL2
SDL2_image
SDL2_mixer
SDL2_ttf
glew
zlib
icu
cairo
libvpx
glm
];
env.CXXFLAGS = "-DGLM_ENABLE_EXPERIMENTAL -Wno-error=deprecated-declarations";
enableParallelBuilding = true;
installPhase = ''
mkdir -p $out/bin $out/share/frogatto
cp -ar data images modules $out/share/frogatto/
cp -a anura $out/bin/frogatto
'';
meta = {
homepage = "https://github.com/anura-engine/anura";
description = "Game engine used by Frogatto";
license = lib.licenses.zlib;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ astro ];
};
}