1
0
Fork 0
mirror of https://git.sr.ht/~goorzhel/turboprop synced 2024-12-15 17:50:52 +00:00
turboprop/default.nix

34 lines
705 B
Nix
Raw Normal View History

{
charts,
haumea,
lib,
pkgs,
user,
} @ 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];
phases = ["installPhase"];
installPhase = builtins.readFile src/output.sh;
};
}