1
0
Fork 0
mirror of https://git.sr.ht/~goorzhel/turboprop synced 2024-12-14 11:37:37 +00:00
turboprop/default.nix
Antonio Gurgel f8e2703225 s/user/userData
"user" alone is too ambiguous for a variable name.
2024-07-24 21:11:51 -07:00

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;
};
}