8 pname = "nvidia-texture-tools";
9 version = "2.1.2-unstable-2020-12-21";
11 src = fetchFromGitHub {
13 repo = "nvidia-texture-tools";
14 rev = "aeddd65f81d36d8cb7b169b469ef25156666077e";
15 hash = "sha256-BYNm8CxPQbfmnnzNmOQ2Dc8HSyO8mkqzYsBZ5T80398=";
19 # Make a recently added pure virtual function just virtual,
20 # to keep compatibility.
21 sed -i 's/virtual void endImage() = 0;/virtual void endImage() {}/' src/nvtt/nvtt.h
22 '' + lib.optionalString stdenv.hostPlatform.isAarch64 ''
23 # remove x86_64-only libraries
24 sed -i '/bc1enc/d' src/nvtt/tests/CMakeLists.txt
25 sed -i '/libsquish/d;/CMP_Core/d' extern/CMakeLists.txt
28 outputs = [ "out" "dev" "lib" ];
35 (lib.cmakeBool "NVTT_SHARED" true)
39 moveToOutput include "$dev"
40 moveToOutput lib "$lib"
44 description = "Set of cuda-enabled texture tools and compressors";
45 homepage = "https://github.com/castano/nvidia-texture-tools";
46 license = licenses.mit;
47 maintainers = with maintainers; [ wegank ];
48 platforms = platforms.unix;