Unverified Commit 0505cee4 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

tocaia: init at 0.9.0 (#452598)

parents 23d99b2d 94d2bea2
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  gitUpdater,
  versionCheckHook,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "tocaia";
  version = "0.9.0";

  src = fetchFromGitHub {
    owner = "manipuladordedados";
    repo = "tocaia";
    tag = finalAttrs.version;
    hash = "sha256-Np+Awn5KGoAbeoUEkcAeVwnNCqI2Iy+19Zj1RkNfgXU=";
  };

  makeFlags = [ "PREFIX=$(out)" ];

  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  versionCheckProgramArg = "--version";
  doInstallCheck = true;

  passthru.updateScript = gitUpdater { };

  meta = {
    description = "Portable TUI Gopher client written in C89 for POSIX systems";
    homepage = "https://github.com/manipuladordedados/tocaia";
    changelog = "https://github.com/manipuladordedados/tocaia/releases/tag/${finalAttrs.version}";
    license = lib.licenses.bsd2;
    platforms = lib.platforms.unix;
    maintainers = with lib.maintainers; [ manipuladordedados ];
    mainProgram = "tocaia";
  };
})