summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/krane/default.nix
blob: 6d325d6f592e62928f18a5e0ef93bb9b6f879e37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ 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 ];
  };
}