mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
29 lines
624 B
Nix
29 lines
624 B
Nix
{ 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 ];
|
|
};
|
|
}
|