diff --git a/overlays/default.nix b/overlays/default.nix index 71bdd539..8f7398b0 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -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; } diff --git a/overlays/rotp-foodogsquared/com.remnantsoftheprecursors.ROTP.png b/overlays/rotp-foodogsquared/com.remnantsoftheprecursors.ROTP.png new file mode 100644 index 00000000..bcdae615 Binary files /dev/null and b/overlays/rotp-foodogsquared/com.remnantsoftheprecursors.ROTP.png differ diff --git a/overlays/rotp-foodogsquared/default.nix b/overlays/rotp-foodogsquared/default.nix new file mode 100644 index 00000000..dc2a49b3 --- /dev/null +++ b/overlays/rotp-foodogsquared/default.nix @@ -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 + ''; + }); +}