surf: add run-time dependencies to PATH

Fix #70410
This commit is contained in:
Jaakko Luttinen 2019-10-06 08:58:48 +03:00 committed by worldofpeace
parent d484f2b7fc
commit 8a0c8b3085

View file

@ -1,6 +1,7 @@
{ stdenv, fetchurl
{ lib, stdenv, fetchurl
, pkgconfig, wrapGAppsHook
, glib, glib-networking, gsettings-desktop-schemas, gtk, libsoup, webkitgtk
, xorg, dmenu, findutils, gnused, coreutils
, patches ? null
}:
@ -20,6 +21,16 @@ stdenv.mkDerivation rec {
installFlags = [ "PREFIX=$(out)" ];
# Add run-time dependencies to PATH. Append them to PATH so the user can
# override the dependencies with their own PATH.
preFixup = let
depsPath = lib.makeBinPath [ xorg.xprop dmenu findutils gnused coreutils ];
in ''
gappsWrapperArgs+=(
--suffix PATH : ${depsPath}
)
'';
meta = with stdenv.lib; {
description = "A simple web browser based on WebKit/GTK";
longDescription = ''