Unverified Commit 7234fd21 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

nvcat: init at 0.1.5 (#475795)

parents 39e623de 66a08058
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -19623,6 +19623,12 @@
    githubId = 14004859;
    name = "Ole Mussmann";
  };
  olillin = {
    email = "oli@olillin.com";
    github = "olillin";
    githubId = 55047947;
    name = "Oli";
  };
  oliver-koss = {
    email = "oliver.koss06@gmail.com";
    github = "oliver-koss";
+43 −0
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  fetchFromGitHub,
  nix-update-script,
}:
buildGoModule (finalAttrs: {
  pname = "nvcat";
  version = "0.1.5";

  src = fetchFromGitHub {
    owner = "brianhuster";
    repo = "nvcat";
    tag = "v${finalAttrs.version}";
    hash = "sha256-F23trNMmoifPyOVp5hK+xUM3m96PIBniO9mmyfTMnFE=";
  };

  vendorHash = "sha256-IZ1+RAKKYG9TblT30FmqMGswnUrzLdrK+haNmqGdGSk=";

  ldflags = [
    "-s"
    "-w"
  ];

  passthru.updateScript = nix-update-script {
    extraArgs = [
      "--version-regex"
      "v(.+)"
    ];
  };

  meta = {
    description = "`cat` but with syntax highlighting powered by Neovim";
    homepage = "https://github.com/brianhuster/nvcat";
    changelog = "https://github.com/brianhuster/nvcat/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.asl20;
    longDescription = ''
      A command-line utility that displays files with Neovim's syntax highlighting in the terminal.
    '';
    mainProgram = "nvcat";
    maintainers = with lib.maintainers; [ olillin ];
  };
})