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

34 lines
731 B
Nix
Raw Normal View History

{
charts,
haumea,
lib,
pkgs,
# Other names I thought of: data, custom, userLib.
# Unsure which one will work best.
user ? {},
} @ inputs: let
flakeBuilders = import ./flake-builders.nix inputs;
in {
mkDerivation = {
pname,
version,
serviceRoot,
nsMetadata,
kubeVersion,
src,
}: let
services = flakeBuilders.mkServices serviceRoot kubeVersion;
in
pkgs.stdenv.mkDerivation {
inherit pname version src;
derivation_paths = services.paths;
2023-12-04 04:54:47 +00:00
namespace_drv = flakeBuilders.mkNamespaces {
inherit (services) namespaces;
extraMetadata = nsMetadata;
};
phases = ["installPhase"];
2023-12-04 04:54:47 +00:00
installPhase = builtins.readFile ./output.sh;
};
}