oxker: add a desktop file (#449641)

This commit is contained in:
Yohann Boniface
2025-10-07 21:09:56 +00:00
committed by GitHub

View File

@@ -4,6 +4,8 @@
fetchCrate,
rustPlatform,
nix-update-script,
makeDesktopItem,
copyDesktopItems,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -25,6 +27,36 @@ rustPlatform.buildRustPackage (finalAttrs: {
passthru.updateScript = nix-update-script { };
nativeBuildInputs = [
copyDesktopItems
];
desktopItems = [
(makeDesktopItem {
name = finalAttrs.pname;
desktopName = "oxker";
comment = finalAttrs.meta.description;
exec = finalAttrs.meta.mainProgram;
icon = "oxker";
terminal = true;
categories = [
"System"
"Utility"
"Monitor"
"ConsoleOnly"
];
keywords = [
"docker"
"container"
];
})
];
postInstall = ''
mkdir --parents $out/share/icons/hicolor/scalable/apps
cp .github/logo.svg $out/share/icons/hicolor/scalable/apps/oxker.svg
'';
meta = {
description = "Simple TUI to view & control docker containers";
homepage = "https://github.com/mrjackwills/oxker";