From 33c64b520ad0d5233165e0190ecb77b972fe811b Mon Sep 17 00:00:00 2001 From: Martino Fontana Date: Mon, 3 Jul 2023 00:40:26 +0200 Subject: [PATCH] lapce: use upstream .desktop file --- pkgs/applications/editors/lapce/default.nix | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/pkgs/applications/editors/lapce/default.nix b/pkgs/applications/editors/lapce/default.nix index d06647579b9a..6b955bdb180b 100644 --- a/pkgs/applications/editors/lapce/default.nix +++ b/pkgs/applications/editors/lapce/default.nix @@ -7,8 +7,6 @@ , pkg-config , perl , fontconfig -, copyDesktopItems -, makeDesktopItem , glib , gtk3 , openssl @@ -92,7 +90,6 @@ rustPlatform.buildRustPackage rec { cmake pkg-config perl - copyDesktopItems wrapGAppsHook # FIX: No GSettings schemas are installed on the system gobject-introspection ]; @@ -116,19 +113,10 @@ rustPlatform.buildRustPackage rec { ]; postInstall = '' - install -Dm0644 $src/extra/images/logo.svg $out/share/icons/hicolor/scalable/apps/lapce.svg + install -Dm0644 $src/extra/images/logo.svg $out/share/icons/hicolor/scalable/apps/dev.lapce.lapce.svg + install -Dm0644 $src/extra/linux/dev.lapce.lapce.desktop $out/share/applications/lapce.desktop ''; - desktopItems = [ (makeDesktopItem { - name = "lapce"; - exec = "lapce %F"; - icon = "lapce"; - desktopName = "Lapce"; - comment = meta.description; - genericName = "Code Editor"; - categories = [ "Development" "Utility" "TextEditor" ]; - }) ]; - passthru.updateScript = nix-update-script { }; meta = with lib; {