diff --git a/pkgs/by-name/hx/hxtools/package.nix b/pkgs/by-name/hx/hxtools/package.nix index e5616a3db2bc..d8ec121244d6 100644 --- a/pkgs/by-name/hx/hxtools/package.nix +++ b/pkgs/by-name/hx/hxtools/package.nix @@ -1,29 +1,31 @@ { 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; }; })