2021-01-11 15:50:59 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeDesktopItem, copyDesktopItems, SDL, lua5_1, pkg-config, SDL_mixer, SDL_image, SDL_ttf }:
|
|
|
|
|
2014-11-08 19:34:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "fish-fillets-ng";
|
2014-11-08 19:34:56 +00:00
|
|
|
version = "1.0.1";
|
2021-01-11 15:50:59 +00:00
|
|
|
|
2014-11-08 19:34:56 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/fillets/fillets-ng-${version}.tar.gz";
|
|
|
|
sha256 = "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij";
|
|
|
|
};
|
|
|
|
data = fetchurl {
|
|
|
|
url = "mirror://sourceforge/fillets/fillets-ng-data-${version}.tar.gz";
|
|
|
|
sha256 = "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh";
|
|
|
|
};
|
2021-01-11 15:50:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config copyDesktopItems ];
|
|
|
|
buildInputs = [ SDL lua5_1 SDL_mixer SDL_image SDL_ttf ];
|
|
|
|
|
2020-05-05 10:08:27 +01:00
|
|
|
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;";
|
|
|
|
}) ];
|
2021-01-11 15:50:59 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/games/fillets-ng
|
|
|
|
tar -xf ${data} -C $out/share/games/fillets-ng --strip-components=1
|
2020-05-05 10:08:27 +01:00
|
|
|
install -Dm644 ${./icon.xpm} $out/share/pixmaps/fish-fillets-ng.xpm
|
2014-11-08 19:34:56 +00:00
|
|
|
'';
|
2021-01-11 15:50:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2014-11-08 19:34:56 +00:00
|
|
|
inherit version;
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "A puzzle game";
|
2021-01-11 15:50:59 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
platforms = platforms.linux;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://fillets.sourceforge.net/";
|
2014-11-08 19:34:56 +00:00
|
|
|
};
|
|
|
|
}
|