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.
This commit is contained in:
parent
592adc7915
commit
13ab2b4b10
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, fetchurl, wrapGAppsHook, makeDesktopItem
|
{ stdenv, fetchurl, wrapGAppsHook, makeDesktopItem
|
||||||
, atk
|
, atk
|
||||||
, cairo
|
, cairo
|
||||||
|
, coreutils
|
||||||
, curl
|
, curl
|
||||||
, cups
|
, cups
|
||||||
, dbus-glib
|
, dbus-glib
|
||||||
@ -131,6 +132,12 @@ stdenv.mkDerivation rec {
|
|||||||
"$out/usr/lib/zotero-bin-${version}/{}" \;
|
"$out/usr/lib/zotero-bin-${version}/{}" \;
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
gappsWrapperArgs+=(
|
||||||
|
--prefix PATH : ${stdenv.lib.makeBinPath [ coreutils ]}
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://www.zotero.org";
|
homepage = "https://www.zotero.org";
|
||||||
description = "Collect, organize, cite, and share your research sources";
|
description = "Collect, organize, cite, and share your research sources";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user