diff --git a/debug.log b/debug.log new file mode 100644 index 0000000..e69de29 diff --git a/default.nix b/default.nix index 770d35d..fbd2c30 100644 --- a/default.nix +++ b/default.nix @@ -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 { }; } diff --git a/pkgs/diffnav/default.nix b/pkgs/diffnav/default.nix new file mode 100644 index 0000000..2a73d78 --- /dev/null +++ b/pkgs/diffnav/default.nix @@ -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"; + }; +} +