18 lines
526 B
Nix
18 lines
526 B
Nix
# Standalone build drivers import sibling JavaScript modules. Their code is an
|
|
# input; Nix helper APIs and test sources do not belong to that dependency.
|
|
builtins.path {
|
|
path = ./.;
|
|
name = "camino-build-tools";
|
|
filter =
|
|
filename: type:
|
|
let
|
|
name = builtins.baseNameOf filename;
|
|
in
|
|
(type == "directory" && filename == toString ./.)
|
|
|| (
|
|
builtins.dirOf filename == toString ./.
|
|
&& builtins.match ".*\\.mjs" name != null
|
|
&& builtins.match ".*\\.test\\.mjs" name == null
|
|
);
|
|
}
|