overlays/rotp-foodogsquared: init

This commit is contained in:
Gabriel Arazas 2025-01-12 14:21:02 +08:00
parent 1d0eb3c32c
commit 2f0eafcabf
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
3 changed files with 25 additions and 0 deletions

View File

@ -7,5 +7,6 @@
ffmpeg-foodogsquared = import ./ffmpeg-foodogsquared;
firefox-foodogsquared = import ./firefox-foodogsquared;
blender-foodogsquared = import ./blender-foodogsquared;
rotp-foodogsquared = import ./rotp-foodogsquared;
thunderbird-foodogsquared = import ./thunderbird-foodogsquared;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

View File

@ -0,0 +1,24 @@
final: prev:
let
rotpDesktop = prev.makeDesktopItem {
name = "com.remnantsoftheprecursors.ROTP";
desktopName = "Remnants of the Precursors";
exec = "rotp";
type = "Application";
icon = "com.remnantsoftheprecursors.ROTP";
categories = [ "Application" "Game" ];
};
in
{
rotp-foodogsquared = prev.rotp.overrideAttrs (finalAttrs: prevAttrs: {
desktopItems = (prevAttrs.desktopItems or []) ++ [ rotpDesktop ];
nativeBuildInputs = prevAttrs.nativeBuildInputs or [] ++ [
prev.copyDesktopItems
];
postInstall = ''
${prevAttrs.postInstall or ""}
install -Dm0644 ${./com.remnantsoftheprecursors.ROTP.png} ${placeholder "out"}/share/icons/hicolor/128x128/apps/com.remnantsoftheprecursors.ROTP.png
'';
});
}