Merge pull request #187634 from rhendric/rhendric/hyperrogue
This commit is contained in:
commit
6a35a74698
@ -1,20 +1,27 @@
|
||||
{ lib, stdenv, fetchFromGitHub, SDL, SDL_ttf, SDL_gfx, SDL_mixer, autoreconfHook,
|
||||
libpng, glew, makeDesktopItem }:
|
||||
{ lib, stdenv, fetchFromGitHub, SDL, SDL_ttf, SDL_gfx, SDL_mixer, libpng
|
||||
, glew, dejavu_fonts, makeDesktopItem }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hyperrogue";
|
||||
version = "11.3o";
|
||||
version = "12.0u";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zenorogue";
|
||||
repo = "hyperrogue";
|
||||
rev = "v${version}";
|
||||
sha256 = "0bijgbqpc867pq8lbwwvcnc713gm51mmz625xb5br0q2qw09nkyh";
|
||||
sha256 = "sha256-zG8Z+wpwr5z2r2CcjNxKOdiqXUN0AFChZcihUWel68A=";
|
||||
};
|
||||
|
||||
CPPFLAGS = "-I${lib.getDev SDL}/include/SDL";
|
||||
CXXFLAGS = [
|
||||
"-I${lib.getDev SDL}/include/SDL"
|
||||
"-DHYPERPATH='\"${placeholder "out"}/share/hyperrogue/\"'"
|
||||
"-DRESOURCEDESTDIR=HYPERPATH"
|
||||
"-DHYPERFONTPATH='\"${dejavu_fonts}/share/fonts/truetype/\"'"
|
||||
];
|
||||
HYPERROGUE_USE_GLEW = 1;
|
||||
HYPERROGUE_USE_PNG = 1;
|
||||
|
||||
buildInputs = [ autoreconfHook SDL SDL_ttf SDL_gfx SDL_mixer libpng glew ];
|
||||
buildInputs = [ SDL SDL_ttf SDL_gfx SDL_mixer libpng glew ];
|
||||
|
||||
desktopItem = makeDesktopItem {
|
||||
name = "hyperrogue";
|
||||
@ -26,7 +33,14 @@ stdenv.mkDerivation rec {
|
||||
categories = [ "Game" "AdventureGame" ];
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
installPhase = ''
|
||||
install -d $out/share/hyperrogue/{sounds,music}
|
||||
|
||||
install -m 555 -D hyperrogue $out/bin/hyperrogue
|
||||
install -m 444 -D hyperrogue-music.txt *.dat $out/share/hyperrogue
|
||||
install -m 444 -D music/* $out/share/hyperrogue/music
|
||||
install -m 444 -D sounds/* $out/share/hyperrogue/sounds
|
||||
|
||||
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 \
|
||||
|
Loading…
Reference in New Issue
Block a user