2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, vulkan-headers
|
|
|
|
, vulkan-tools
|
|
|
|
, vulkan-loader
|
|
|
|
, glslang
|
|
|
|
, glfw
|
|
|
|
, libjpeg
|
|
|
|
, pkg-config
|
|
|
|
, rsync
|
|
|
|
, cmake
|
|
|
|
, clang
|
|
|
|
, llvm
|
|
|
|
, llvmPackages
|
|
|
|
, pugixml
|
|
|
|
, freetype
|
|
|
|
, exiv2
|
|
|
|
, ffmpeg
|
|
|
|
, libvorbis
|
|
|
|
, libmad
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vkdt";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.6.0";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/hanatos/${pname}/releases/download/${version}/${pname}-${version}.tar.xz";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-Au0S+9Y+H0FuoHZacnN4azQFQB0tarT2bHNsLxujfLw=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-01-11 07:51:40 +00:00
|
|
|
clang
|
2023-02-02 18:25:31 +00:00
|
|
|
cmake
|
|
|
|
glslang
|
2023-01-11 07:51:40 +00:00
|
|
|
llvm
|
|
|
|
llvmPackages.openmp
|
2023-02-02 18:25:31 +00:00
|
|
|
pkg-config
|
|
|
|
rsync
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2023-01-11 07:51:40 +00:00
|
|
|
exiv2
|
|
|
|
ffmpeg
|
2023-02-02 18:25:31 +00:00
|
|
|
freetype
|
|
|
|
glfw
|
|
|
|
libjpeg
|
2023-01-11 07:51:40 +00:00
|
|
|
libmad
|
2023-02-02 18:25:31 +00:00
|
|
|
libvorbis
|
|
|
|
llvmPackages.openmp
|
|
|
|
pugixml
|
|
|
|
vulkan-headers
|
|
|
|
vulkan-loader
|
|
|
|
vulkan-tools
|
2023-01-11 07:51:40 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" "prefix=" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A vulkan-powered raw image processor";
|
|
|
|
homepage = "https://github.com/hanatos/vkdt";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ paperdigits ];
|
2023-02-02 18:25:31 +00:00
|
|
|
platforms = platforms.linux;
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
}
|