Merge pull request #86912 from iblech/patch-15
fish-fillets-ng: install desktop file
This commit is contained in:
commit
195c3acf8f
@ -1,7 +1,9 @@
|
|||||||
{stdenv, fetchurl, SDL, lua5_1, pkgconfig, SDL_mixer, SDL_image, SDL_ttf}:
|
{ lib, stdenv, fetchurl, makeDesktopItem, copyDesktopItems, SDL, lua5_1, pkg-config, SDL_mixer, SDL_image, SDL_ttf }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "fish-fillets-ng";
|
pname = "fish-fillets-ng";
|
||||||
version = "1.0.1";
|
version = "1.0.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/fillets/fillets-ng-${version}.tar.gz";
|
url = "mirror://sourceforge/fillets/fillets-ng-${version}.tar.gz";
|
||||||
sha256 = "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij";
|
sha256 = "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij";
|
||||||
@ -10,18 +12,31 @@ stdenv.mkDerivation rec {
|
|||||||
url = "mirror://sourceforge/fillets/fillets-ng-data-${version}.tar.gz";
|
url = "mirror://sourceforge/fillets/fillets-ng-data-${version}.tar.gz";
|
||||||
sha256 = "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh";
|
sha256 = "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh";
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
|
||||||
buildInputs = [SDL lua5_1 SDL_mixer SDL_image SDL_ttf];
|
nativeBuildInputs = [ pkg-config copyDesktopItems ];
|
||||||
postInstall=''
|
buildInputs = [ SDL lua5_1 SDL_mixer SDL_image SDL_ttf ];
|
||||||
mkdir -p "$out/share/games/fillets-ng/"
|
|
||||||
tar -xf ${data} -C "$out/share/games/fillets-ng/" --strip-components=1
|
desktopItems = [ (makeDesktopItem {
|
||||||
|
name = "fish-fillets-ng";
|
||||||
|
exec = "fillets";
|
||||||
|
icon = "fish-fillets-ng";
|
||||||
|
desktopName = "Fish Fillets";
|
||||||
|
comment = "Puzzle game about witty fish saving the world sokoban-style";
|
||||||
|
categories = "Game;LogicGame;";
|
||||||
|
}) ];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
mkdir -p $out/share/games/fillets-ng
|
||||||
|
tar -xf ${data} -C $out/share/games/fillets-ng --strip-components=1
|
||||||
|
install -Dm644 ${./icon.xpm} $out/share/pixmaps/fish-fillets-ng.xpm
|
||||||
'';
|
'';
|
||||||
meta = {
|
|
||||||
|
meta = with lib; {
|
||||||
inherit version;
|
inherit version;
|
||||||
description = ''A puzzle game'';
|
description = ''A puzzle game'';
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = [stdenv.lib.maintainers.raskin];
|
maintainers = with maintainers; [ raskin ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
homepage = "http://fillets.sourceforge.net/";
|
homepage = "http://fillets.sourceforge.net/";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
39
pkgs/games/fish-fillets-ng/icon.xpm
Normal file
39
pkgs/games/fish-fillets-ng/icon.xpm
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
/* XPM */
|
||||||
|
static char * fillets_ng_xpm[] = {
|
||||||
|
"32 32 4 1",
|
||||||
|
" c None",
|
||||||
|
". c #000000",
|
||||||
|
"+ c #808000",
|
||||||
|
"@ c #FFFF00",
|
||||||
|
" .......... ",
|
||||||
|
" ...+@@@@@@+... ",
|
||||||
|
" ...@@@@@@@@@@@@... ",
|
||||||
|
" ..+@@@+......+@@@+.. ",
|
||||||
|
" ..@@@+..........+@@@.. ",
|
||||||
|
" ..@@@..............@@@.. ",
|
||||||
|
" ..@@@................@@@.. ",
|
||||||
|
" ..@@@..................@@@.. ",
|
||||||
|
" .+@@....................@@+. ",
|
||||||
|
" ..@@......................@@.. ",
|
||||||
|
" .@@+......................+@@. ",
|
||||||
|
"..@@.....@@@@@.........@@...@@..",
|
||||||
|
".+@+...@@@@@@@@@.....@@@@...+@+.",
|
||||||
|
".@@...@@@.....@@@...@@+@@....@@.",
|
||||||
|
".@@...@@.+@....+@@+@@+.@@....@@.",
|
||||||
|
".@@..@@..@@.....+@@@+..@@....@@.",
|
||||||
|
".@@..@@.........+@@@+..@@....@@.",
|
||||||
|
".@@...@@.......+@@+@@+.@@....@@.",
|
||||||
|
".@@...@@@.....@@@...@@+@@....@@.",
|
||||||
|
".+@+...@@@@@@@@@.....@@@@...+@+.",
|
||||||
|
"..@@.....@@@@@.........@@...@@..",
|
||||||
|
" .@@+......................+@@. ",
|
||||||
|
" ..@@......................@@.. ",
|
||||||
|
" .+@@....................@@+. ",
|
||||||
|
" ..@@@..................@@@.. ",
|
||||||
|
" ..@@@................@@@.. ",
|
||||||
|
" ..@@@..............@@@.. ",
|
||||||
|
" ..@@@+..........+@@@.. ",
|
||||||
|
" ..+@@@+......+@@@+.. ",
|
||||||
|
" ...@@@@@@@@@@@@... ",
|
||||||
|
" ...+@@@@@@+... ",
|
||||||
|
" .......... "};
|
Loading…
Reference in New Issue
Block a user