package.nix (869B)
1 { 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 installShellFiles, 6 }: 7 8 buildGoModule (finalAttrs: { 9 pname = "revdiff"; 10 version = "1.13.0"; 11 12 __structuredAttrs = true; 13 14 src = fetchFromGitHub { 15 owner = "umputun"; 16 repo = "revdiff"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-qcah2Fx4u9AXEfb22R9BW3Rv9oYx+H8+KPGQVRjOr98="; 19 }; 20 21 vendorHash = null; 22 23 ldflags = [ 24 "-s" 25 "-X main.revision=v${finalAttrs.version}" 26 ]; 27 28 nativeBuildInputs = [ installShellFiles ]; 29 30 doCheck = false; 31 32 postInstall = '' 33 mv $out/bin/{app,revdiff} 34 installShellCompletion completions/* 35 ''; 36 37 meta = { 38 description = "TUI for reviewing git diffs with inline annotations"; 39 homepage = "https://github.com/umputun/revdiff"; 40 maintainers = with lib.maintainers; [ sikmir ]; 41 license = lib.licenses.mit; 42 mainProgram = "revdiff"; 43 }; 44 })
