betanin: format files

This commit is contained in:
xeals 2023-09-27 16:30:23 +10:00
parent fa525000a6
commit 24ee0d7826
Signed by: xeals
SSH Key Fingerprint: SHA256:pRv+8swQDA+/LuZ7NHj9m006BbKexlNK62OUA01ZZBc
3 changed files with 120 additions and 112 deletions

View File

@ -2,7 +2,10 @@
{ pkgs ? import <nixpkgs> {
inherit system;
}, system ? builtins.currentSystem, nodejs ? pkgs."nodejs_18"}:
}
, system ? builtins.currentSystem
, nodejs ? pkgs."nodejs_18"
}:
let
nodeEnv = import ./node-env.nix {

View File

@ -96,13 +96,15 @@ let
mkdir -p node_modules
cd node_modules
''
+ (lib.concatMapStrings (dependency:
+ (lib.concatMapStrings
(dependency:
''
if [ ! -e "${dependency.packageName}" ]; then
${composePackage dependency}
fi
''
) dependencies)
)
dependencies)
+ ''
cd ..
''
@ -491,7 +493,8 @@ let
, unpackPhase ? "true"
, buildPhase ? "true"
, meta ? { }
, ... }@args:
, ...
}@args:
let
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" "dontStrip" "dontNpmInstall" "preRebuild" "unpackPhase" "buildPhase" "meta" ];
@ -582,7 +585,8 @@ let
, dontStrip ? true
, unpackPhase ? "true"
, buildPhase ? "true"
, ... }@args:
, ...
}@args:
let
extraArgs = removeAttrs args [ "name" "dependencies" "buildInputs" ];
@ -653,7 +657,8 @@ let
, dontStrip ? true
, unpackPhase ? "true"
, buildPhase ? "true"
, ... }@args:
, ...
}@args:
let
nodeDependencies = buildNodeDependencies args;

View File

@ -9196,8 +9196,7 @@ let
})
];
buildInputs = globalBuildInputs;
meta = {
};
meta = { };
production = false;
bypassCache = true;
reconstructLock = false;
@ -9216,7 +9215,8 @@ in
"*"
"!package.json"
"!package-lock.json"
] args.src;
]
args.src;
dontBuild = true;
installPhase = "mkdir -p $out; cp -r ./* $out;";
};