summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/office
diff options
context:
space:
mode:
authorDaniël de Kok <me@danieldk.eu>2020-09-01 13:29:46 +0200
committerDaniël de Kok <me@danieldk.eu>2020-09-01 13:29:46 +0200
commit13ab2b4b10fdad81123802f0873e853a07c41746 (patch)
treeaf10d0d68f899d7fd1b2ce57e2d6861226416fc6 /pkgs/applications/office
parent592adc791568457b02cb2335379b34ce04d24a87 (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.nix7
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";