mirror of
https://github.com/NixOS/bundlers.git
synced 2024-10-26 15:59:07 +03:00
Merge pull request #15 from dummy987654321/local_builds
switch to runCommandLocal to speed up build of reports
This commit is contained in:
commit
057f773125
@ -15,7 +15,7 @@ with rec
|
|||||||
{
|
{
|
||||||
inherit (pkgs)
|
inherit (pkgs)
|
||||||
closureInfo
|
closureInfo
|
||||||
runCommand
|
runCommandLocal
|
||||||
writeText
|
writeText
|
||||||
jq
|
jq
|
||||||
;
|
;
|
||||||
@ -75,7 +75,7 @@ let
|
|||||||
# list of runtime store paths. If it's a match, we keep it. Otherwise, we
|
# list of runtime store paths. If it's a match, we keep it. Otherwise, we
|
||||||
# discard it.
|
# discard it.
|
||||||
runtimeReport = drv:
|
runtimeReport = drv:
|
||||||
runCommand "${drv.name}-report" { buildInputs = [ jq ]; }
|
runCommandLocal "${drv.name}-report" { buildInputs = [ jq ]; }
|
||||||
# XXX: This is to avoid IFD
|
# XXX: This is to avoid IFD
|
||||||
''
|
''
|
||||||
(
|
(
|
||||||
@ -182,7 +182,7 @@ renderLicense = license:
|
|||||||
|
|
||||||
# This is a wrapper around nixpkgs' `closureInfo`. It produces a JSON file
|
# This is a wrapper around nixpkgs' `closureInfo`. It produces a JSON file
|
||||||
# containing a list of the store paths of `drv`'s runtime dependencies.
|
# containing a list of the store paths of `drv`'s runtime dependencies.
|
||||||
cinfo = drv: runCommand "${drv.name}-cinfo"
|
cinfo = drv: runCommandLocal "${drv.name}-cinfo"
|
||||||
{ buildInputs = [ jq ]; }
|
{ buildInputs = [ jq ]; }
|
||||||
# NOTE: we avoid IFD here as well
|
# NOTE: we avoid IFD here as well
|
||||||
''
|
''
|
||||||
@ -194,7 +194,7 @@ cinfo = drv: runCommand "${drv.name}-cinfo"
|
|||||||
|
|
||||||
in {
|
in {
|
||||||
runtimeReport = runtimeReport drv;
|
runtimeReport = runtimeReport drv;
|
||||||
buildtimeDerivations = runCommand "${drv.name}-build" {
|
buildtimeDerivations = runCommandLocal "${drv.name}-build" {
|
||||||
big = builtins.toJSON (buildtimeDerivations drv);
|
big = builtins.toJSON (buildtimeDerivations drv);
|
||||||
passAsFile = ["big"];
|
passAsFile = ["big"];
|
||||||
buildInputs = [ pkgs.jq];
|
buildInputs = [ pkgs.jq];
|
||||||
|
Loading…
Reference in New Issue
Block a user