From 7097b20ea1e96c27127fd3b0a0102f40b588b041 Mon Sep 17 00:00:00 2001 From: whispers Date: Wed, 10 Jun 2026 09:30:18 -0400 Subject: [PATCH] python3Packages.plover_{4,5}: install desktop entry as is, plover has a desktop entry in the source tree but it is not actually shipped in nixpkgs. we place it in the standard $out/share/applications directory so it can be found by e.g. launchers. --- pkgs/development/python-modules/plover/4.nix | 4 ++++ pkgs/development/python-modules/plover/5.nix | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/plover/4.nix b/pkgs/development/python-modules/plover/4.nix index bda985cb0122..eee8ac5e5dc8 100644 --- a/pkgs/development/python-modules/plover/4.nix +++ b/pkgs/development/python-modules/plover/4.nix @@ -70,6 +70,10 @@ buildPythonPackage (finalAttrs: { # Segfaults?! disabledTestPaths = [ "test/gui_qt/test_dictionaries_widget.py" ]; + postInstall = '' + install -Dm 444 linux/plover.desktop $out/share/applications/plover.desktop + ''; + preFixup = '' makeWrapperArgs+=("''${qtWrapperArgs[@]}") ''; diff --git a/pkgs/development/python-modules/plover/5.nix b/pkgs/development/python-modules/plover/5.nix index 1abbf78609e9..7676abeb0ee2 100644 --- a/pkgs/development/python-modules/plover/5.nix +++ b/pkgs/development/python-modules/plover/5.nix @@ -124,6 +124,10 @@ buildPythonPackage (finalAttrs: { "test/gui_qt/test_i18n_files.py" # babel errors ]; + postInstall = '' + install -Dm 444 linux/plover.desktop $out/share/applications/plover.desktop + ''; + preFixup = '' makeWrapperArgs+=("''${qtWrapperArgs[@]}") '';