at master 44 lines 965 B view raw
1{ 2 buildGoModule, 3 fetchFromGitHub, 4 lib, 5}: 6 7buildGoModule rec { 8 pname = "helm-diff"; 9 version = "3.13.0"; 10 11 src = fetchFromGitHub { 12 owner = "databus23"; 13 repo = "helm-diff"; 14 rev = "v${version}"; 15 hash = "sha256-U1lNCOYix+7aPNq4U0A7KU4Cr+AqQsTUrYTg/0Zg5cs="; 16 }; 17 18 vendorHash = "sha256-nwL6n0pthW12ij9iqmS404r0m9xv0qh8RYiQhqvJC2U="; 19 20 ldflags = [ 21 "-s" 22 "-w" 23 "-X github.com/databus23/helm-diff/v3/cmd.Version=${version}" 24 ]; 25 26 # NOTE: Remove the install and upgrade hooks. 27 postPatch = '' 28 sed -i '/^hooks:/,+2 d' plugin.yaml 29 ''; 30 31 postInstall = '' 32 install -dm755 $out/${pname} 33 mv $out/bin $out/${pname}/ 34 mv $out/${pname}/bin/{helm-,}diff 35 install -m644 -Dt $out/${pname} plugin.yaml 36 ''; 37 38 meta = with lib; { 39 description = "Helm plugin that shows a diff"; 40 homepage = "https://github.com/databus23/helm-diff"; 41 license = licenses.asl20; 42 maintainers = with maintainers; [ yurrriq ]; 43 }; 44}