summary refs log tree commit diff
path: root/pkgs/applications/misc/evopedia
diff options
context:
space:
mode:
authorBart Brouns <bart@magnetophon.nl>2017-12-01 17:24:53 +0100
committerBart Brouns <bart@magnetophon.nl>2017-12-01 17:28:55 +0100
commite2160affab403804f49bb2557c241759175026ba (patch)
treea4011f628f9266322c2404d1a074125319434b35 /pkgs/applications/misc/evopedia
parenta57a32e07c6b5f172536bdc5bca94b346042a441 (diff)
downloadnixlib-e2160affab403804f49bb2557c241759175026ba.tar
nixlib-e2160affab403804f49bb2557c241759175026ba.tar.gz
nixlib-e2160affab403804f49bb2557c241759175026ba.tar.bz2
nixlib-e2160affab403804f49bb2557c241759175026ba.tar.lz
nixlib-e2160affab403804f49bb2557c241759175026ba.tar.xz
nixlib-e2160affab403804f49bb2557c241759175026ba.tar.zst
nixlib-e2160affab403804f49bb2557c241759175026ba.zip
evopedia: patch the desktop file
Diffstat (limited to 'pkgs/applications/misc/evopedia')
-rw-r--r--pkgs/applications/misc/evopedia/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/misc/evopedia/default.nix b/pkgs/applications/misc/evopedia/default.nix
index 170e2385d4af..69767c11d6aa 100644
--- a/pkgs/applications/misc/evopedia/default.nix
+++ b/pkgs/applications/misc/evopedia/default.nix
@@ -14,6 +14,12 @@ stdenv.mkDerivation rec {
   buildInputs = [ bzip2 qt4 libX11 ];
   nativeBuildInputs = [ qmake4Hook ];
 
+  postInstall = ''
+    # Patch the `evopedia.desktop' file.
+    substituteInPlace $out/share/applications/evopedia.desktop \
+        --replace '/usr/bin/evopedia' $out/bin/evopedia
+  '';
+
   meta = with stdenv.lib; {
     description = "Offline Wikipedia Viewer";
     homepage = http://www.evopedia.info;