From 9a154e2838cbb4b830e59eee8ec923a1d1ce3f85 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 2 Jun 2016 18:56:29 +0200 Subject: [PATCH] gwenhywfar: Allow to override pluginSearchPaths We're going to create a closure of plugins for aqbanking, so that it's easier to adapt the gwenhywfar search path to include these store paths. Signed-off-by: aszlig Cc: @cillianderoiste, @urkud --- pkgs/development/libraries/aqbanking/gwenhywfar.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/aqbanking/gwenhywfar.nix b/pkgs/development/libraries/aqbanking/gwenhywfar.nix index 6a3bc2555350..70e7b1c33c0d 100644 --- a/pkgs/development/libraries/aqbanking/gwenhywfar.nix +++ b/pkgs/development/libraries/aqbanking/gwenhywfar.nix @@ -1,4 +1,10 @@ -{ stdenv, fetchurl, gnutls, gtk, libgcrypt, pkgconfig, gettext, qt4 }: +{ stdenv, fetchurl, gnutls, gtk, libgcrypt, pkgconfig, gettext, qt4 + +, pluginSearchPaths ? [ + "/run/current-system/sw/lib/gwenhywfar/plugins" + ".nix-profile/lib/gwenhywfar/plugins" + ] +}: stdenv.mkDerivation rec { name = "gwenhywfar-${version}"; @@ -15,10 +21,6 @@ stdenv.mkDerivation rec { }; postPatch = let - pluginSearchPaths = [ - "/run/current-system/sw/lib/gwenhywfar/plugins" - ".nix-profile/lib/gwenhywfar/plugins" - ]; isRelative = path: builtins.substring 0 1 path != "/"; mkSearchPath = path: '' p; g; s,\,"${path}",g;