uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
55
pkgs/games/hyperrogue/default.nix
Normal file
55
pkgs/games/hyperrogue/default.nix
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{ lib, stdenv, fetchFromGitHub, SDL, SDL_ttf, SDL_gfx, SDL_mixer, autoreconfHook,
|
||||
libpng, glew, makeDesktopItem }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hyperrogue";
|
||||
version = "11.3o";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "zenorogue";
|
||||
repo = "hyperrogue";
|
||||
rev = "v${version}";
|
||||
sha256 = "0bijgbqpc867pq8lbwwvcnc713gm51mmz625xb5br0q2qw09nkyh";
|
||||
};
|
||||
|
||||
CPPFLAGS = "-I${lib.getDev SDL}/include/SDL";
|
||||
|
||||
buildInputs = [ autoreconfHook SDL SDL_ttf SDL_gfx SDL_mixer libpng glew ];
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.roguetemple.com/z/hyper/";
|
||||
description = "A roguelike game set in hyperbolic geometry";
|
||||
maintainers = with maintainers; [ rardiol ];
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue