forked from mirrors/nixpkgs
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 <aszlig@redmoonstudios.org> Cc: @cillianderoiste, @urkud
This commit is contained in:
parent
ee92256566
commit
9a154e2838
|
@ -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,\<PLUGINDIR\>,"${path}",g;
|
||||
|
|
Loading…
Reference in a new issue