mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
buildbot: fix .withPlugins to propagate inputs
Before I was just grabbing the immediate dependencies. I _think_ this will do the right thing by using the pre-existing setup hook to avoid having to compute the transitive closure myself.
This commit is contained in:
parent
a53d5cfaba
commit
ca5a1d927f
@ -2,11 +2,10 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
withPlugins = plugins: runCommand "wrapped-${package.name}" {
|
withPlugins = plugins: runCommand "wrapped-${package.name}" {
|
||||||
buildInputs = [ makeWrapper ];
|
buildInputs = [ makeWrapper ] ++ plugins;
|
||||||
passthru.withPlugins = moarPlugins: withPlugins (moarPlugins ++ plugins);
|
passthru.withPlugins = moarPlugins: withPlugins (moarPlugins ++ plugins);
|
||||||
} ''
|
} ''
|
||||||
makeWrapper ${package}/bin/buildbot $out/bin/buildbot \
|
makeWrapper ${package}/bin/buildbot $out/bin/buildbot --prefix PYTHONPATH : $PYTHONPATH
|
||||||
--prefix PYTHONPATH : ${lib.makeSearchPathOutput "lib" pythonPackages.python.sitePackages plugins}
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
package = pythonPackages.buildPythonApplication (rec {
|
package = pythonPackages.buildPythonApplication (rec {
|
||||||
|
Loading…
Reference in New Issue
Block a user