mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
tilda: ensure wrapped executable is named "tilda"
This commit is contained in:
parent
65335c1a58
commit
1b04fbad1c
1 changed files with 5 additions and 1 deletions
|
@ -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"
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue