mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
18 lines
408 B
Nix
18 lines
408 B
Nix
{ lib
|
|
, 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
|
|
''
|