diffnav: init at 0.2.8 (#345587)
This commit is contained in:
commit
b7b476adbe
41
pkgs/by-name/di/diffnav/package.nix
Normal file
41
pkgs/by-name/di/diffnav/package.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
buildGoModule,
|
||||
makeBinaryWrapper,
|
||||
delta,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "diffnav";
|
||||
version = "0.2.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dlvhdr";
|
||||
repo = "diffnav";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-xZAi/Ky1RjOxjhQKHvozaPTqDPcrGfhMemGWzi7WyW4=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-2JjQF+fwl8+Xoq9T3jCvngRAOa3935zpi9qbF4w4hEI=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ makeBinaryWrapper ];
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/diffnav \
|
||||
--prefix PATH : ${lib.makeBinPath [ delta ]}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/dlvhdr/diffnav/releases/tag/${src.rev}";
|
||||
description = "Git diff pager based on delta but with a file tree, à la GitHub";
|
||||
homepage = "https://github.com/dlvhdr/diffnav";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ amesgen ];
|
||||
mainProgram = "diffnav";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user