apache-airflow: use fetchYarnDeps

This commit is contained in:
Robert Schütz 2023-09-05 20:31:16 -07:00
parent 05f82739df
commit a75694493b
3 changed files with 7 additions and 24230 deletions

View File

@ -80,6 +80,7 @@
, pytestCheckHook
, time-machine
, mkYarnPackage
, fetchYarnDeps
, writeScript
# Extra airflow providers to enable
@ -101,13 +102,16 @@ let
# airflow bundles a web interface, which is built using webpack by an undocumented shell script in airflow's source tree.
# This replicates this shell script, fixing bugs in yarn.lock and package.json
airflow-frontend = mkYarnPackage {
airflow-frontend = mkYarnPackage rec {
name = "airflow-frontend";
src = "${airflow-src}/airflow/www";
packageJSON = ./package.json;
yarnLock = ./yarn.lock;
yarnNix = ./yarn.nix;
offlineCache = fetchYarnDeps {
yarnLock = "${src}/yarn.lock";
hash = "sha256-ZUvjSA6BKj27xTNieVBBXm6oCTAWIvxk2menQMt91uE=";
};
distPhase = "true";

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff