mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
chromium: Ensure runtime deps for enabled plugins.
We're propagating the plugin flags by importing from another Nix expression file, which in turn exports the Nix path to the wrapper. This causes that the store path isn't referenced in the wrapper and the path isn't recognized by scanning the wrapper script (only those already referenced at build time are). So let's add the activated plugins to the buildInputs of the wrapper. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
eae32fb798
commit
9343f6f461
@ -66,7 +66,7 @@ let
|
||||
in stdenv.mkDerivation {
|
||||
name = "chromium${suffix}-${chromium.browser.version}";
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
buildInputs = [ makeWrapper ] ++ chromium.plugins.enabledPlugins;
|
||||
|
||||
buildCommand = let
|
||||
browserBinary = "${chromium.browser}/libexec/chromium/chromium";
|
||||
|
@ -94,6 +94,7 @@ let
|
||||
else head (tail v);
|
||||
in fold (l: r: zipAttrsWith (_: f) [ l r ]) {};
|
||||
in {
|
||||
inherit enabledPlugins;
|
||||
settings = mergeAttrsets (map getNix enabledPlugins);
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user