nixpkgs/pkgs/applications/networking/cluster/tubekit/wrapper.nix
2024-07-26 11:18:09 +02:00

17 lines
402 B
Nix

{ runCommand
, makeWrapper
, tubekit-unwrapped
, pname ? "tubekit"
, version ? tubekit-unwrapped.version
, kubectl
}:
runCommand "${pname}-${version}"
{
inherit pname version;
inherit (tubekit-unwrapped) src meta;
nativeBuildInputs = [ makeWrapper ];
} ''
mkdir -p $out/bin
makeWrapper ${tubekit-unwrapped}/bin/tubectl $out/bin/tubectl --set-default TUBEKIT_KUBECTL ${kubectl}/bin/kubectl
''