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

libHX: 3.22 -> 5.2; adopted

parent 2bab6d7a
Loading
Loading
Loading
Loading
+18 −23
Original line number Diff line number Diff line
{
  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
    ];
  };
}
})