1 { buildEnv, lib, callPackage, makeWrapper, makeDesktopItem }:
4 description = "Action-adventure game, starring a certain quixotic frog";
5 engine = callPackage ./engine.nix { };
6 data = callPackage ./data.nix { };
7 desktopItem = makeDesktopItem {
11 icon = "${data}/share/frogatto/modules/frogatto/images/os/frogatto-icon.png";
12 comment = description;
13 desktopName = "Frogatto";
14 genericName = "frogatto";
15 categories = [ "Game" "ArcadeGame" ];
17 version = "unstable-2020-12-04";
19 name = "frogatto-${version}";
21 nativeBuildInputs = [ makeWrapper ];
22 paths = [ engine data desktopItem ];
25 "/share/frogatto/data"
26 "/share/frogatto/images"
27 "/share/frogatto/modules"
32 wrapProgram $out/bin/frogatto \
33 --chdir "$out/share/frogatto"
37 homepage = "https://frogatto.com";
38 description = description;
39 license = with licenses; [ cc-by-30 unfree ];
40 platforms = platforms.linux;
41 maintainers = with maintainers; [ astro ];