2021-02-05 17:12:51 +00:00
|
|
|
{ buildEnv, lib, callPackage, makeWrapper, makeDesktopItem }:
|
2020-04-24 23:36:52 +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-07-18 16:06:22 +00:00
|
|
|
categories = "Game;ArcadeGame;";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "unstable-2020-12-04";
|
2020-04-24 23:36:52 +00:00
|
|
|
in buildEnv {
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-30 08:33:03 +00:00
|
|
|
broken = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://frogatto.com";
|
|
|
|
description = description;
|
|
|
|
license = with licenses; [ cc-by-30 unfree ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ astro ];
|
|
|
|
};
|
|
|
|
}
|