From c27e1bcb98fc8ec2db629ce2ea3d2fa3d310214d Mon Sep 17 00:00:00 2001 From: Duncan Fairbanks Date: Sun, 12 Nov 2023 13:35:12 -0800 Subject: [PATCH 1/2] ktx-tools: init at 4.2.1 Co-authored-by: Jussi Kuokkanen <44469719+Lurkki14@users.noreply.github.com> --- pkgs/by-name/kt/ktx-tools/package.nix | 66 +++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 pkgs/by-name/kt/ktx-tools/package.nix diff --git a/pkgs/by-name/kt/ktx-tools/package.nix b/pkgs/by-name/kt/ktx-tools/package.nix new file mode 100644 index 000000000000..5eba2f3f4788 --- /dev/null +++ b/pkgs/by-name/kt/ktx-tools/package.nix @@ -0,0 +1,66 @@ +{ + cmake, + doxygen, + fetchFromGitHub, + getopt, + ninja, + lib, + pkg-config, + stdenv, +}: +stdenv.mkDerivation rec { + pname = "ktx-tools"; + version = "4.3.2"; + + src = fetchFromGitHub { + owner = "KhronosGroup"; + repo = "KTX-Software"; + rev = "v${version}"; + hash = "sha256-zjiJ8B8FEZUJ3iFTYXRmuIEtcaCWtBIbYwz0DwjTDFo"; + }; + + nativeBuildInputs = [ + cmake + doxygen + getopt + ninja + pkg-config + ]; + + cmakeBuildType = "RelWithDebInfo"; + + cmakeFlags = [ "-DKTX_FEATURE_DOC=ON" ]; + + postPatch = '' + patchShebangs . + ''; + + meta = with lib; { + description = "KTX (Khronos Texture) Library and Tools"; + longDescription = '' + KTX (Khronos Texture) is a lightweight container for textures for OpenGL®, + Vulkan® and other GPU APIs. KTX files contain all the parameters needed + for texture loading. A single file can contain anything from a simple + base-level 2D texture through to a cubemap array texture with mipmaps. + + This software package contains: + - libktx: a small library of functions for writing and reading KTX + files, and instantiating OpenGL®, OpenGL ES™️ and Vulkan® textures + from them. + - ktx2check: a tool for validating KTX Version 2 format files. + - ktx2ktx2: a tool for converting a KTX Version 1 file to a KTX Version + 2 file. + - ktxinfo: a tool to display information about a KTX file in human + readable form. + - ktxsc: a tool to supercompress a KTX Version 2 file that contains + uncompressed images. + - toktx: a tool to create KTX files from PNG, Netpbm or JPEG format + images. It supports mipmap generation, encoding to Basis Universal + formats and Zstd supercompression. + ''; + homepage = "https://github.com/KhronosGroup/KTX-Software"; + license = licenses.asl20; + maintainers = [ ]; + platforms = platforms.linux; + }; +} From 4ed0ebac06b3c59d7416b4ddc64b7ac6956e6eb3 Mon Sep 17 00:00:00 2001 From: Duncan Fairbanks Date: Sun, 12 Nov 2023 13:53:51 -0800 Subject: [PATCH 2/2] maintainers: add bonsairobo Co-authored-by: Jussi Kuokkanen <44469719+Lurkki14@users.noreply.github.com> --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/by-name/kt/ktx-tools/package.nix | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index f5dbcb02b57d..b940efb445d7 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -2711,6 +2711,12 @@ githubId = 150560585; name = "Dmitry Ivankov"; }; + bonsairobo = { + email = "duncanfairbanks6@gmail.com"; + github = "bonsairobo"; + githubId = 3229981; + name = "Duncan Fairbanks"; + }; booklearner = { name = "booklearner"; email = "booklearner@proton.me"; diff --git a/pkgs/by-name/kt/ktx-tools/package.nix b/pkgs/by-name/kt/ktx-tools/package.nix index 5eba2f3f4788..24e55148a8cb 100644 --- a/pkgs/by-name/kt/ktx-tools/package.nix +++ b/pkgs/by-name/kt/ktx-tools/package.nix @@ -60,7 +60,7 @@ stdenv.mkDerivation rec { ''; homepage = "https://github.com/KhronosGroup/KTX-Software"; license = licenses.asl20; - maintainers = [ ]; + maintainers = with maintainers; [ bonsairobo ]; platforms = platforms.linux; }; }