Watch
0
0
Fork
You've already forked hyperhive
0

nix: render migrate.json and wrap swarmctl with kubectl

This commit is contained in:
atlas 2026-11-22 20:44:16 +01:00 • committed by mara
commit 5779bc5719

View file

@ -0,0 +1,11 @@
# `pathsWithin dir paths`: the entries of `paths` that sit under `dir`, relative
# to it. A null entry, and a path elsewhere (or `dir` itself), is left out.
{ lib }:
dir: paths:
lib.concatMap (
path:
let
prefix = "${dir}/";
in
lib.optional (path != null && lib.hasPrefix prefix path) (lib.removePrefix prefix path)
) paths