Merge pull request #253571 from dotlambda/apache-airflow-fetchYarnDeps

apache-airflow: use fetchYarnDeps
This commit is contained in:
Weijia Wang 2023-09-06 15:26:38 +02:00 committed by GitHub
commit 42f221572d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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