mirror of
https://git.sr.ht/~goorzhel/turboprop
synced 2024-12-14 11:37:37 +00:00
f8e2703225
"user" alone is too ambiguous for a variable name.
33 lines
720 B
Nix
33 lines
720 B
Nix
{
|
|
charts,
|
|
haumea,
|
|
lib,
|
|
pkgs,
|
|
userData,
|
|
} @ inputs: let
|
|
mk = import src/mk.nix inputs;
|
|
in {
|
|
mkDerivation = {
|
|
pname,
|
|
version,
|
|
src,
|
|
serviceRoot,
|
|
nsMetadata ? {},
|
|
kubeVersion ? pkgs.kubernetes.version,
|
|
apiVersions ? [],
|
|
}: let
|
|
services = mk.services {inherit serviceRoot kubeVersion apiVersions;};
|
|
in
|
|
pkgs.stdenv.mkDerivation {
|
|
inherit pname version src;
|
|
derivation_paths = services.paths;
|
|
namespace_drv = mk.namespaces {
|
|
inherit (services) namespaces;
|
|
extraMetadata = nsMetadata;
|
|
};
|
|
|
|
buildInputs = [pkgs.kustomize pkgs.yq-go];
|
|
phases = ["installPhase"];
|
|
installPhase = builtins.readFile src/output.sh;
|
|
};
|
|
}
|