1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, makeDesktopItem
, libGL, libGLU, SDL2, SDL2_net, gtk2, glib
, openal, libogg, libvorbis, libtheora
, libjpeg, freeimage, freetype, bzip2
, aux-data ? "" }:
let
desktopItem = makeDesktopItem {
name = "overgrowth";
desktopName = "Overgrowth";
icon = "overgrowth";
exec = "overgrowth";
path = aux-data;
categories = [ "Game" ];
};
in stdenv.mkDerivation rec {
pname = "overgrowth";
version = "unstable-2022-04-29";
src = fetchFromGitHub {
owner = "WolfireGames";
repo = pname;
rev = "dbe069e42e1cea27654a8fb618fdde77f41ac257";
sha256 = "sha256-81VKN0mU8XFdOZb6jrii2FeyVXCUiytcF2pgdO0je0s=";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [
libGL libGLU SDL2 SDL2_net gtk2 glib
openal libogg libvorbis libtheora
libjpeg freeimage freetype bzip2
];
cmakeFlags = [
"-S../Projects"
"-DAUX_DATA=${aux-data}"
"-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"
"-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
];
hardeningDisable = [ "format" ];
installPhase = ''
install -D build/Overgrowth.bin.* $out/bin/overgrowth
install -D Projects/OGIcon.png\
$out/share/icons/hicolor/1024x1024/apps/overgrowth.png
install -D ${desktopItem}/share/applications/overgrowth.desktop \
$out/share/applications/overgrowth.desktop
'';
meta = {
description = "Third person ninja rabbit fighting game";
homepage = "https://overgrowth.wolfire.com";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.McSinyx ];
platforms = lib.platforms.linux;
};
}
|