summary refs log tree commit diff
path: root/pkgs/applications/misc/tilda
diff options
context:
space:
mode:
authorTim Cuthbertson <tim@gfxmonk.net>2015-08-26 17:46:01 +1000
committerTim Cuthbertson <tim@gfxmonk.net>2015-08-26 17:46:01 +1000
commit1b04fbad1c8641d00f2dd43fd5b3b48c3fc5d6e1 (patch)
tree2fe9aaaf31c14bf6053fd8e4bb193eeb8c7e7869 /pkgs/applications/misc/tilda
parent65335c1a58daec63b3451b7a65d24b8faade9059 (diff)
downloadnixpkgs-1b04fbad1c8641d00f2dd43fd5b3b48c3fc5d6e1.tar
nixpkgs-1b04fbad1c8641d00f2dd43fd5b3b48c3fc5d6e1.tar.gz
nixpkgs-1b04fbad1c8641d00f2dd43fd5b3b48c3fc5d6e1.tar.bz2
nixpkgs-1b04fbad1c8641d00f2dd43fd5b3b48c3fc5d6e1.tar.lz
nixpkgs-1b04fbad1c8641d00f2dd43fd5b3b48c3fc5d6e1.tar.xz
nixpkgs-1b04fbad1c8641d00f2dd43fd5b3b48c3fc5d6e1.tar.zst
nixpkgs-1b04fbad1c8641d00f2dd43fd5b3b48c3fc5d6e1.zip
tilda: ensure wrapped executable is named "tilda"
Diffstat (limited to 'pkgs/applications/misc/tilda')
-rw-r--r--pkgs/applications/misc/tilda/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/misc/tilda/default.nix b/pkgs/applications/misc/tilda/default.nix
index 187ab039014..c7a01f2ac1b 100644
--- a/pkgs/applications/misc/tilda/default.nix
+++ b/pkgs/applications/misc/tilda/default.nix
@@ -17,8 +17,12 @@ stdenv.mkDerivation rec {
 
   LD_LIBRARY_PATH = "${expat}/lib"; # ugly hack for xgettext to work during build
 
+  # The config locking scheme relies on the binary being called "tilda",
+  # (`pgrep -C tilda`), so a simple `wrapProgram` won't suffice:
   postInstall = ''
-    wrapProgram "$out/bin/tilda" \
+    mkdir $out/bin/wrapped
+    mv "$out/bin/tilda" "$out/bin/wrapped/tilda"
+    makeWrapper "$out/bin/wrapped/tilda" "$out/bin/tilda" \
         --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
   '';