{ charts, haumea, lib, pkgs, user, } @ inputs: let builders = import src/builders.nix inputs; in { mkDerivation = { pname, version, src, serviceRoot, nsMetadata ? {}, kubeVersion ? pkgs.kubernetes.version, }: let services = builders.mkServices serviceRoot kubeVersion; in pkgs.stdenv.mkDerivation { inherit pname version src; derivation_paths = services.paths; namespace_drv = builders.mkNamespaces { inherit (services) namespaces; extraMetadata = nsMetadata; }; buildInputs = [pkgs.kustomize]; phases = ["installPhase"]; installPhase = builtins.readFile src/output.sh; }; }