2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, SDL, SDL_ttf, SDL_gfx, SDL_mixer, autoreconfHook,
|
2019-04-21 03:41:29 +00:00
|
|
|
libpng, glew, makeDesktopItem }:
|
2018-07-10 19:24:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "hyperrogue";
|
2020-06-06 09:25:34 +00:00
|
|
|
version = "11.3o";
|
2018-07-10 19:24:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zenorogue";
|
|
|
|
repo = "hyperrogue";
|
2020-04-02 16:33:58 +00:00
|
|
|
rev = "v${version}";
|
2020-06-06 09:25:34 +00:00
|
|
|
sha256 = "0bijgbqpc867pq8lbwwvcnc713gm51mmz625xb5br0q2qw09nkyh";
|
2018-07-10 19:24:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
CPPFLAGS = "-I${SDL.dev}/include/SDL";
|
|
|
|
|
|
|
|
buildInputs = [ autoreconfHook SDL SDL_ttf SDL_gfx SDL_mixer libpng glew ];
|
|
|
|
|
2019-04-21 03:41:29 +00:00
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "hyperrogue";
|
|
|
|
desktopName = "HyperRogue";
|
|
|
|
genericName = "HyperRogue";
|
|
|
|
comment = meta.description;
|
|
|
|
icon = "hyperrogue";
|
|
|
|
exec = "hyperrogue";
|
|
|
|
categories = "Game;AdventureGame;";
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -m 444 -D ${desktopItem}/share/applications/hyperrogue.desktop \
|
|
|
|
$out/share/applications/hyperrogue.desktop
|
|
|
|
install -m 444 -D hyperroid/app/src/main/res/drawable-ldpi/icon.png \
|
|
|
|
$out/share/icons/hicolor/36x36/apps/hyperrogue.png
|
|
|
|
install -m 444 -D hyperroid/app/src/main/res/drawable-mdpi/icon.png \
|
|
|
|
$out/share/icons/hicolor/48x48/apps/hyperrogue.png
|
|
|
|
install -m 444 -D hyperroid/app/src/main/res/drawable-hdpi/icon.png \
|
|
|
|
$out/share/icons/hicolor/72x72/apps/hyperrogue.png
|
|
|
|
install -m 444 -D hyperroid/app/src/main/res/drawable-xhdpi/icon.png \
|
|
|
|
$out/share/icons/hicolor/96x96/apps/hyperrogue.png
|
|
|
|
install -m 444 -D hyperroid/app/src/main/res/drawable-xxhdpi/icon.png \
|
|
|
|
$out/share/icons/hicolor/144x144/apps/hyperrogue.png
|
|
|
|
install -m 444 -D hyperroid/app/src/main/res/drawable-xxxhdpi/icon.png \
|
|
|
|
$out/share/icons/hicolor/192x192/apps/hyperrogue.png
|
|
|
|
'';
|
|
|
|
|
2018-11-27 20:21:25 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.roguetemple.com/z/hyper/";
|
2018-07-10 19:24:59 +00:00
|
|
|
description = "A roguelike game set in hyperbolic geometry";
|
|
|
|
maintainers = with maintainers; [ rardiol ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|