1
0
Fork 0
mirror of https://git.sr.ht/~goorzhel/turboprop synced 2024-12-14 11:37:37 +00:00
turboprop/default.nix

34 lines
720 B
Nix
Raw Normal View History

{
charts,
haumea,
lib,
pkgs,
userData,
} @ inputs: let
mk = import src/mk.nix inputs;
in {
mkDerivation = {
pname,
version,
src,
serviceRoot,
nsMetadata ? {},
kubeVersion ? pkgs.kubernetes.version,
2023-12-05 03:39:28 +00:00
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 {
2023-12-04 04:54:47 +00:00
inherit (services) namespaces;
extraMetadata = nsMetadata;
};
buildInputs = [pkgs.kustomize pkgs.yq-go];
phases = ["installPhase"];
installPhase = builtins.readFile src/output.sh;
};
}