2019-06-16 19:59:06 +00:00
|
|
|
{ buildEnv, stdenv, callPackage, makeWrapper, makeDesktopItem }:
|
2019-01-02 10:47:16 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
description = "Action-adventure game, starring a certain quixotic frog";
|
|
|
|
engine = callPackage ./engine.nix { };
|
|
|
|
data = callPackage ./data.nix { };
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "frogatto";
|
|
|
|
exec = "frogatto";
|
|
|
|
startupNotify = "true";
|
|
|
|
icon = "${data}/share/frogatto/modules/frogatto/images/os/frogatto-icon.png";
|
|
|
|
comment = description;
|
|
|
|
desktopName = "Frogatto";
|
|
|
|
genericName = "frogatto";
|
2020-06-25 02:18:37 +00:00
|
|
|
categories = "Game;ArcadeGame;";
|
2019-01-02 10:47:16 +00:00
|
|
|
};
|
|
|
|
version = "unstable-2018-12-18";
|
2019-08-13 21:52:01 +00:00
|
|
|
in buildEnv {
|
2019-01-02 10:47:16 +00:00
|
|
|
name = "frogatto-${version}";
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
paths = [ engine data desktopItem ];
|
|
|
|
pathsToLink = [
|
|
|
|
"/bin"
|
|
|
|
"/share/frogatto/data"
|
|
|
|
"/share/frogatto/images"
|
|
|
|
"/share/frogatto/modules"
|
|
|
|
"/share/applications"
|
|
|
|
];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/frogatto \
|
|
|
|
--run "cd $out/share/frogatto"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://frogatto.com";
|
2019-01-02 10:47:16 +00:00
|
|
|
description = description;
|
|
|
|
license = with licenses; [ cc-by-30 unfree ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ astro ];
|
|
|
|
};
|
|
|
|
}
|