2021-01-25 09:26:54 +01:00
|
|
|
{ buildEnv, lib, callPackage, makeWrapper, makeDesktopItem }:
|
2019-01-02 11:47:16 +01: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";
|
2022-02-22 15:56:15 +01:00
|
|
|
startupNotify = true;
|
2019-01-02 11:47:16 +01:00
|
|
|
icon = "${data}/share/frogatto/modules/frogatto/images/os/frogatto-icon.png";
|
|
|
|
comment = description;
|
|
|
|
desktopName = "Frogatto";
|
|
|
|
genericName = "frogatto";
|
2022-02-22 15:56:15 +01:00
|
|
|
categories = [ "Game" "ArcadeGame" ];
|
2019-01-02 11:47:16 +01:00
|
|
|
};
|
2023-02-28 22:35:46 +01:00
|
|
|
inherit (data) version;
|
2019-08-13 23:52:01 +02:00
|
|
|
in buildEnv {
|
2019-01-02 11:47:16 +01:00
|
|
|
name = "frogatto-${version}";
|
|
|
|
|
2022-08-15 05:40:21 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2019-01-02 11:47:16 +01:00
|
|
|
paths = [ engine data desktopItem ];
|
|
|
|
pathsToLink = [
|
|
|
|
"/bin"
|
|
|
|
"/share/frogatto/data"
|
|
|
|
"/share/frogatto/images"
|
|
|
|
"/share/frogatto/modules"
|
|
|
|
"/share/applications"
|
|
|
|
];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
wrapProgram $out/bin/frogatto \
|
2022-03-14 19:06:00 +01:00
|
|
|
--chdir "$out/share/frogatto"
|
2019-01-02 11:47:16 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://frogatto.com";
|
2019-01-02 11:47:16 +01:00
|
|
|
description = description;
|
|
|
|
license = with licenses; [ cc-by-30 unfree ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ astro ];
|
|
|
|
};
|
|
|
|
}
|