nixpkgs/pkgs/games/frogatto/engine.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchurl, which
, boost, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf
, glew, zlib, icu, pkg-config, cairo, libvpx }:
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "anura-engine";
version = "unstable-2022-04-09";
src = fetchFromGitHub {
owner = "anura-engine";
repo = "anura";
rev = "5ac7f6fe63114274f0da7dad4c1ed673651e6424";
sha256 = "1yrcbvzgxdvn893qk1qcpb53pjns366fdls5qjal7lhq71kkfc67";
fetchSubmodules = true;
};
patches = [
# https://github.com/anura-engine/anura/issues/321
(fetchurl {
url = "https://github.com/anura-engine/anura/commit/627d08fb5254b5c66d315f1706089905c2704059.patch";
sha256 = "052m58qb3lg0hnxacpnjz2sz89dk0x6b5qi2q9bkzkvg38f237rr";
})
];
nativeBuildInputs = [
which pkg-config
];
buildInputs = [
boost
SDL2
SDL2_image
SDL2_mixer
SDL2_ttf
glew
zlib
icu
cairo
libvpx
];
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 = with lib; {
homepage = "https://github.com/anura-engine/anura";
description = "Game engine used by Frogatto";
license = licenses.zlib;
platforms = platforms.linux;
maintainers = with maintainers; [ astro ];
};
}