libHX: 3.22 -> 5.2; adopted

This commit is contained in:
chillcicada
2025-12-14 14:50:52 +08:00
parent 2bab6d7af2
commit d0df291f63
+18 -23
View File
@@ -1,46 +1,41 @@
{
lib,
stdenv,
fetchurl,
autoconf,
automake,
libtool,
fetchFromGitea,
autoreconfHook,
nix-update-script,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "libHX";
version = "3.22";
version = "5.2";
src = fetchurl {
url = "mirror://sourceforge/libhx/libHX/${version}/${pname}-${version}.tar.xz";
sha256 = "18w39j528lyg2026dr11f2xxxphy91cg870nx182wbd8cjlqf86c";
src = fetchFromGitea {
domain = "codeberg.org";
tag = "v${finalAttrs.version}";
owner = "jengelh";
repo = "libhx";
hash = "sha256-z1/D5dkcDc2VIoGCvunUYsLGq3AV6jZ01Edf1vuUx9o=";
};
patches = [ ];
nativeBuildInputs = [ autoreconfHook ];
nativeBuildInputs = [
autoconf
automake
libtool
];
preConfigure = ''
sh autogen.sh
'';
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://libhx.sourceforge.net/";
homepage = "https://inai.de/projects/libhx/";
longDescription = ''
libHX is a C library (with some C++ bindings available) that provides data structures
and functions commonly needed, such as maps, deques, linked lists, string formatting
and autoresizing, option and config file parsing, type checking casts and more.
'';
maintainers = [ ];
changelog = "https://codeberg.org/jengelh/libhx/src/branch/master/doc/changelog.rst";
maintainers = with lib.maintainers; [ chillcicada ];
platforms = lib.platforms.linux;
license = with lib.licenses; [
gpl3
lgpl21Plus
wtfpl
mit
];
};
}
})