Skip to content

Commit

Permalink
feat: diffnav
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Sep 18, 2024
1 parent d703562 commit 78918c4
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
Empty file added debug.log
Empty file.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
svu = pkgs.callPackage ./pkgs/svu { };
timer = pkgs.callPackage ./pkgs/timer { };
xdg-open-svc = pkgs.callPackage ./pkgs/xdg-open-svc { };
diffnav = pkgs.callPackage ./pkgs/diffnav { };

mkdocs-include-markdown-plugin = pkgs.callPackage ./pkgs/mkdocs-include-markdown-plugin { };
}
32 changes: 32 additions & 0 deletions pkgs/diffnav/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule {
pname = "diffnav";
version = "2024-09-18";

src = fetchFromGitHub {
owner = "dlvhdr";
repo = "diffnav";
rev = "ea5ccdb02dc1c8fdd12429975e9b6f79c8e43dcd";
hash = "sha256-y+nODXTZpXdUTQYwqL01rPvD8bHhI48EH1TuEhPAeMU=";
};

vendorHash = "sha256-doRzntvXr7O7kmFT3mWXLmMjx6BqrnIqL3mYYtcbGxw=";

postPatch = ''
sed 's/1.22.6/1.22.5/' -i go.mod
'';

doCheck = false;

meta = with lib; {
description = "A git diff pager based on delta but with a file tree, à la GitHub";
homepage = "https://github.com/dlvhdr/diffnav";
changelog = "https://github.com/dlvhdr/diffnav/commits";
maintainers = with maintainers; [ caarlos0 ];
mainProgram = "diffnav";
};
}

0 comments on commit 78918c4

Please sign in to comment.