3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/cluster/krane/default.nix

29 lines
624 B
Nix
Raw Normal View History

2021-09-04 19:24:09 +01:00
{ lib
, bundlerApp
, makeWrapper
, kubectl
, bundlerUpdateScript
}:
bundlerApp {
pname = "krane";
gemdir = ./.;
exes = [ "krane" ];
buildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram "$out/bin/krane" \
--prefix PATH : ${lib.makeBinPath [ kubectl ]}
'';
passthru.updateScript = bundlerUpdateScript "krane";
meta = with lib; {
description = "A command-line tool that helps you ship changes to a Kubernetes namespace and understand the result";
homepage = "https://github.com/Shopify/krane";
license = licenses.mit;
maintainers = with maintainers; [ kira-bruneau ];
};
}