summary refs log tree commit diff
diff options
context:
space:
mode:
authorEven Brenden <evenbrenden@gmail.com>2021-02-09 16:33:33 +0100
committerEven Brenden <evenbrenden@gmail.com>2021-02-09 16:43:05 +0100
commitfc5e83194610f1f14af3b31f540582e8cd1abb0a (patch)
tree0f098b751e3aa324277c11be575ddbd72788b9c1
parent24eb3f87fc610f18de7076aee7c5a84ac5591e3e (diff)
downloadnixpkgs-fc5e83194610f1f14af3b31f540582e8cd1abb0a.tar
nixpkgs-fc5e83194610f1f14af3b31f540582e8cd1abb0a.tar.gz
nixpkgs-fc5e83194610f1f14af3b31f540582e8cd1abb0a.tar.bz2
nixpkgs-fc5e83194610f1f14af3b31f540582e8cd1abb0a.tar.lz
nixpkgs-fc5e83194610f1f14af3b31f540582e8cd1abb0a.tar.xz
nixpkgs-fc5e83194610f1f14af3b31f540582e8cd1abb0a.tar.zst
nixpkgs-fc5e83194610f1f14af3b31f540582e8cd1abb0a.zip
retext: fix XDG desktop file
-rw-r--r--pkgs/applications/editors/retext/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/editors/retext/default.nix b/pkgs/applications/editors/retext/default.nix
index c32e8315756..6d585c01329 100644
--- a/pkgs/applications/editors/retext/default.nix
+++ b/pkgs/applications/editors/retext/default.nix
@@ -53,6 +53,10 @@ in python.pkgs.buildPythonApplication {
         paths = map (path: "${path}/lib/aspell") enchantAspellDicts;
       }}"
     )
+
+    substituteInPlace $out/share/applications/me.mitya57.ReText.desktop \
+      --replace "Exec=ReText-${version}.data/scripts/retext %F" "Exec=$out/bin/retext %F" \
+      --replace "Icon=ReText-${version}.data/data/share/retext/icons/retext.svg" "Icon=$out/share/retext/icons/retext.svg"
   '';
 
   meta = with stdenv.lib; {