lapce: use upstream .desktop file

This commit is contained in:
Martino Fontana 2023-07-03 00:40:26 +02:00
parent ab163c16ee
commit 33c64b520a

View file

@ -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; {