Unverified Commit b7b5bb22 authored by chillcicada's avatar chillcicada
Browse files

hxtools: 20250309 -> 20251011; add me as maintainers

parent ef539d10
Loading
Loading
Loading
Loading
+22 −19
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitea,
  pkg-config,
  autoreconfHook,
  bash,
  fetchurl,
  libHX,
  makeWrapper,
  perl,
  perlPackages,
  stdenv,
  pkg-config,
  zstd,
  libHX,
  nix-update-script,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "hxtools";
  version = "20250309";
  version = "20251011";

  src = fetchurl {
    url = "https://inai.de/files/hxtools/hxtools-${finalAttrs.version}.tar.zst";
    hash = "sha256-2ItcEiMe0GzgJ3MxZ28wjmXGSbZtc7BHpkpKIAodAwA=";
  src = fetchFromGitea {
    domain = "codeberg.org";
    tag = "rel-${finalAttrs.version}";
    owner = "jengelh";
    repo = "hxtools";
    hash = "sha256-qwo8QfC1ZEvMTU7g2ZnIX3WQM+xjSPb6Y/inPI20x/g=";
  };

  nativeBuildInputs = [
    makeWrapper
    autoreconfHook
    pkg-config
    zstd
  ];

  buildInputs = [
@@ -31,15 +33,13 @@ stdenv.mkDerivation (finalAttrs: {
    perl
    bash
    libHX
  ];

  postInstall = ''
    wrapProgram $out/bin/man2html \
      --prefix PERL5LIB : "${with perlPackages; makePerlPath [ TextCSV_XS ]}"
  '';
  ]
  ++ (with perlPackages; [ TextCSV_XS ]);

  strictDeps = true;

  passthru.updateScript = nix-update-script { };

  meta = {
    homepage = "https://inai.de/projects/hxtools/";
    description = "Collection of small tools over the years by j.eng";
@@ -50,7 +50,10 @@ stdenv.mkDerivation (finalAttrs: {
      lgpl21Plus
      gpl2Plus
    ];
    maintainers = with lib.maintainers; [ meator ];
    maintainers = with lib.maintainers; [
      meator
      chillcicada
    ];
    platforms = lib.platforms.all;
  };
})