From 3197830cbed3cb93e76f171ad320c97be13293d5 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Wed, 29 Dec 2021 22:18:27 +0100 Subject: [PATCH] nicotine-plus: install .desktop file --- .../networking/soulseek/nicotine-plus/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/soulseek/nicotine-plus/default.nix b/pkgs/applications/networking/soulseek/nicotine-plus/default.nix index c4d014530cc3..34579ec8ba77 100644 --- a/pkgs/applications/networking/soulseek/nicotine-plus/default.nix +++ b/pkgs/applications/networking/soulseek/nicotine-plus/default.nix @@ -19,8 +19,11 @@ python3Packages.buildPythonApplication rec { propagatedBuildInputs = [ gtk3 gdk-pixbuf gobject-introspection ] ++ (with python3Packages; [ pygobject3 ]); + postInstall = '' - mv $out/bin/nicotine $out/bin/nicotine-plus + ln -s $out/bin/nicotine $out/bin/nicotine-plus + test -e $out/share/applications/org.nicotine_plus.Nicotine.desktop && exit 1 + install -D data/org.nicotine_plus.Nicotine.desktop -t $out/share/applications ''; preFixup = ''