3
0
Fork 0
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:
aszlig 2016-06-02 18:56:29 +02:00
parent ee92256566
commit 9a154e2838
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -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;