package.nix (839B)
1 { 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 installShellFiles, 6 }: 7 8 buildGoModule (finalAttrs: { 9 pname = "revdiff"; 10 version = "1.15.0"; 11 12 __structuredAttrs = true; 13 14 src = fetchFromGitHub { 15 owner = "umputun"; 16 repo = "revdiff"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-5KJ8q4cDLiFP64iCAt5NvJ9lm4zF9R9snGRiOtxEGis="; 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 installShellCompletion completions/* 34 ''; 35 36 meta = { 37 description = "TUI for reviewing git diffs with inline annotations"; 38 homepage = "https://github.com/umputun/revdiff"; 39 maintainers = with lib.maintainers; [ sikmir ]; 40 license = lib.licenses.mit; 41 mainProgram = "revdiff"; 42 }; 43 })
