From 348a1278d964f9cffb2083f5b60d4ed1d9549d65 Mon Sep 17 00:00:00 2001 From: meator Date: Sat, 24 Aug 2024 15:37:20 +0200 Subject: [PATCH] hxtools: init at 20231224 --- pkgs/by-name/hx/hxtools/package.nix | 43 +++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/hx/hxtools/package.nix diff --git a/pkgs/by-name/hx/hxtools/package.nix b/pkgs/by-name/hx/hxtools/package.nix new file mode 100644 index 000000000000..c2a560f87494 --- /dev/null +++ b/pkgs/by-name/hx/hxtools/package.nix @@ -0,0 +1,43 @@ +{ + lib, + stdenv, + fetchurl, + pkg-config, + zstd, + libHX, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "hxtools"; + version = "20231224"; + + src = fetchurl { + url = "https://inai.de/files/hxtools/hxtools-${finalAttrs.version}.tar.zst"; + hash = "sha256-TyT9bsp9qqGKQsSyWCfd2lH8ULjqJ5puMTw2TgWHV5c="; + }; + + nativeBuildInputs = [ + pkg-config + zstd + ]; + + buildInputs = [ + libHX + ]; + + strictDeps = true; + + meta = { + homepage = "https://inai.de/projects/hxtools/"; + description = "Collection of small tools over the years by j.eng"; + # Taken from https://codeberg.org/jengelh/hxtools/src/branch/master/LICENSES.txt + license = with lib.licenses; [ + mit + bsd2Patent + lgpl21Plus + gpl2Plus + ]; + maintainers = with lib.maintainers; [ meator ]; + platforms = lib.platforms.all; + }; +})