1 { buildGoModule, fetchFromGitHub, lib }:
4 pname = "helm-mapkubeapis";
7 src = fetchFromGitHub {
9 repo = "helm-mapkubeapis";
11 hash = "sha256-0DIBdSi/WIHVF8O7OtJOaFnIfpObsUXzgpj25kJuS6E=";
14 vendorHash = "sha256-G3Q8XCwKLgHeWLF46C5lWfvuynr/cJbkq7xdydfTHZ4=";
16 # NOTE: Remove the install and upgrade hooks.
18 sed -i '/^hooks:/,+2 d' plugin.yaml
22 install -dm755 $out/helm-mapkubeapis
23 mv $out/bin $out/helm-mapkubeapis/
24 install -m644 -Dt $out/helm-mapkubeapis/config/ config/Map.yaml
25 install -m644 -Dt $out/helm-mapkubeapis plugin.yaml
29 description = "Helm plugin which maps deprecated or removed Kubernetes APIs in a release to supported APIs";
30 homepage = "https://github.com/helm/helm-mapkubeapis";
31 license = with lib.licenses; [ asl20 ];
32 maintainers = with lib.maintainers; [ aos ];