diff options
author | Daniël de Kok <me@danieldk.eu> | 2020-09-01 13:29:46 +0200 |
---|---|---|
committer | Daniël de Kok <me@danieldk.eu> | 2020-09-01 13:29:46 +0200 |
commit | 13ab2b4b10fdad81123802f0873e853a07c41746 (patch) | |
tree | af10d0d68f899d7fd1b2ce57e2d6861226416fc6 /pkgs/applications/office | |
parent | 592adc791568457b02cb2335379b34ce04d24a87 (diff) |
zotero: fix reliance on coreutils being in PATH
zotero currently fails in pure environments with:
.zotero-wrapped: line 12: readlink: command not found
.zotero-wrapped: line 12: dirname: command not found
.zotero-wrapped: line 13: /zotero-bin: No such file or directory
Because the script assumes that readlink and dirname are
available. Fix by adding coreutils to PATH using the wrapper.
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r-- | pkgs/applications/office/zotero/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/applications/office/zotero/default.nix b/pkgs/applications/office/zotero/default.nix index 567508c36753..d615f2a06f11 100644 --- a/pkgs/applications/office/zotero/default.nix +++ b/pkgs/applications/office/zotero/default.nix @@ -1,6 +1,7 @@ { stdenv, fetchurl, wrapGAppsHook, makeDesktopItem , atk , cairo +, coreutils , curl , cups , dbus-glib @@ -131,6 +132,12 @@ stdenv.mkDerivation rec { "$out/usr/lib/zotero-bin-${version}/{}" \; ''; + preFixup = '' + gappsWrapperArgs+=( + --prefix PATH : ${stdenv.lib.makeBinPath [ coreutils ]} + ) + ''; + meta = with stdenv.lib; { homepage = "https://www.zotero.org"; description = "Collect, organize, cite, and share your research sources"; |