diff options
author | superherointj <5861043+superherointj@users.noreply.github.com> | 2022-08-30 20:19:39 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-30 20:19:39 -0300 |
commit | f65df2271ce264063c7436c833b28c8521c6a3f0 (patch) | |
tree | 42ba83f649062b449870c4f630168a439c0352a2 /pkgs/applications/audio | |
parent | 22f43ade54b5cbcd2e87cf96dccf62642a71eb30 (diff) | |
parent | 4e5a4eb4d617575f3163228ebb0feab41c24eb5d (diff) | |
download | nixlib-f65df2271ce264063c7436c833b28c8521c6a3f0.tar nixlib-f65df2271ce264063c7436c833b28c8521c6a3f0.tar.gz nixlib-f65df2271ce264063c7436c833b28c8521c6a3f0.tar.bz2 nixlib-f65df2271ce264063c7436c833b28c8521c6a3f0.tar.lz nixlib-f65df2271ce264063c7436c833b28c8521c6a3f0.tar.xz nixlib-f65df2271ce264063c7436c833b28c8521c6a3f0.tar.zst nixlib-f65df2271ce264063c7436c833b28c8521c6a3f0.zip |
Merge pull request #189002 from robbins/psst-gui
psst: add .desktop file
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r-- | pkgs/applications/audio/psst/default.nix | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/pkgs/applications/audio/psst/default.nix b/pkgs/applications/audio/psst/default.nix index 5d41661b6d53..a3d05f97e45e 100644 --- a/pkgs/applications/audio/psst/default.nix +++ b/pkgs/applications/audio/psst/default.nix @@ -1,5 +1,17 @@ -{ lib, fetchFromGitHub, rustPlatform, alsa-lib, atk, cairo, dbus, gdk-pixbuf, glib, gtk3, pango, pkg-config }: +{ lib, fetchFromGitHub, rustPlatform, alsa-lib, atk, cairo, dbus, gdk-pixbuf, glib, gtk3, pango, pkg-config, makeDesktopItem }: +let + desktopItem = makeDesktopItem { + name = "Psst"; + exec = "psst-gui"; + comment = "Fast and multi-platform Spotify client with native GUI"; + desktopName = "Psst"; + type = "Application"; + categories = [ "Audio" "AudioVideo" ]; + icon = "psst"; + terminal = false; + }; +in rustPlatform.buildRustPackage rec { pname = "psst"; version = "unstable-2022-05-19"; @@ -29,7 +41,10 @@ rustPlatform.buildRustPackage rec { ]; postInstall = '' - install -Dm444 psst-gui/assets/logo_512.png $out/share/icons/${pname}.png + mkdir -pv $out/share/icons/hicolor/512x512/apps + install -Dm444 psst-gui/assets/logo_512.png $out/share/icons/hicolor/512x512/apps/${pname}.png + mkdir -pv $out/share/applications + ln -s ${desktopItem}/share/applications/* $out/share/applications ''; meta = with lib; { |