11 stdenv.mkDerivation rec {
15 src = fetchFromGitHub {
16 owner = "KhronosGroup";
17 repo = "KTX-Software";
19 hash = "sha256-zjiJ8B8FEZUJ3iFTYXRmuIEtcaCWtBIbYwz0DwjTDFo";
30 cmakeBuildType = "RelWithDebInfo";
32 cmakeFlags = [ "-DKTX_FEATURE_DOC=ON" ];
39 description = "KTX (Khronos Texture) Library and Tools";
41 KTX (Khronos Texture) is a lightweight container for textures for OpenGL®,
42 Vulkan® and other GPU APIs. KTX files contain all the parameters needed
43 for texture loading. A single file can contain anything from a simple
44 base-level 2D texture through to a cubemap array texture with mipmaps.
46 This software package contains:
47 - libktx: a small library of functions for writing and reading KTX
48 files, and instantiating OpenGL®, OpenGL ES™️ and Vulkan® textures
50 - ktx2check: a tool for validating KTX Version 2 format files.
51 - ktx2ktx2: a tool for converting a KTX Version 1 file to a KTX Version
53 - ktxinfo: a tool to display information about a KTX file in human
55 - ktxsc: a tool to supercompress a KTX Version 2 file that contains
57 - toktx: a tool to create KTX files from PNG, Netpbm or JPEG format
58 images. It supports mipmap generation, encoding to Basis Universal
59 formats and Zstd supercompression.
61 homepage = "https://github.com/KhronosGroup/KTX-Software";
62 license = licenses.asl20;
63 maintainers = with maintainers; [ bonsairobo ];
64 platforms = platforms.linux;