1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00

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;