Merge pull request #241188 from SuperSamus/lapce-desktop
lapce: use upstream .desktop file
This commit is contained in:
commit
636cbdd37e
1 changed files with 2 additions and 14 deletions
|
@ -7,8 +7,6 @@
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, perl
|
, perl
|
||||||
, fontconfig
|
, fontconfig
|
||||||
, copyDesktopItems
|
|
||||||
, makeDesktopItem
|
|
||||||
, glib
|
, glib
|
||||||
, gtk3
|
, gtk3
|
||||||
, openssl
|
, openssl
|
||||||
|
@ -92,7 +90,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
cmake
|
cmake
|
||||||
pkg-config
|
pkg-config
|
||||||
perl
|
perl
|
||||||
copyDesktopItems
|
|
||||||
wrapGAppsHook # FIX: No GSettings schemas are installed on the system
|
wrapGAppsHook # FIX: No GSettings schemas are installed on the system
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
];
|
];
|
||||||
|
@ -116,19 +113,10 @@ rustPlatform.buildRustPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
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 { };
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue