2022-09-08 04:59: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
|
2023-10-19 10:58:38 +00:00
|
|
|
, testers
|
|
|
|
, vkdt
|
2024-10-20 09:12:23 +00:00
|
|
|
, xxd
|
|
|
|
, alsa-lib
|
|
|
|
, cargo
|
|
|
|
, rustPlatform
|
2022-09-08 04:59:40 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vkdt";
|
2024-10-20 09:12:23 +00:00
|
|
|
version = "0.9.0";
|
2022-09-08 04:59:40 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/hanatos/${pname}/releases/download/${version}/${pname}-${version}.tar.xz";
|
2024-10-20 09:12:23 +00:00
|
|
|
hash = "sha256-LXUTDwUjlfyhtXkYW4Zivqt8vyctoz+ID5AQ7gg+d9A=";
|
2022-09-08 04:59:40 +00:00
|
|
|
};
|
|
|
|
|
2023-01-15 00:16:14 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2024-10-20 09:12:23 +00:00
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"rawler-0.6.3" = "sha256-EJ0uWc3pp7ixRxDIdTIVVaT2ph3P2IvuK+ecBSB5HYw=";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
cargoRoot = "src/pipe/modules/i-raw/rawloader-c";
|
|
|
|
|
2023-01-15 00:16:14 +00:00
|
|
|
nativeBuildInputs = [
|
2024-10-20 09:12:23 +00:00
|
|
|
cargo
|
2022-09-08 04:59:40 +00:00
|
|
|
clang
|
2023-01-15 00:16:14 +00:00
|
|
|
cmake
|
|
|
|
glslang
|
2022-09-08 04:59:40 +00:00
|
|
|
llvm
|
|
|
|
llvmPackages.openmp
|
2023-01-15 00:16:14 +00:00
|
|
|
pkg-config
|
|
|
|
rsync
|
2024-10-20 09:12:23 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
xxd
|
2023-01-15 00:16:14 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2024-10-20 09:12:23 +00:00
|
|
|
alsa-lib
|
2022-09-08 04:59:40 +00:00
|
|
|
exiv2
|
|
|
|
ffmpeg
|
2023-01-15 00:16:14 +00:00
|
|
|
freetype
|
|
|
|
glfw
|
|
|
|
libjpeg
|
2022-09-08 04:59:40 +00:00
|
|
|
libmad
|
2023-01-15 00:16:14 +00:00
|
|
|
libvorbis
|
|
|
|
llvmPackages.openmp
|
|
|
|
pugixml
|
|
|
|
vulkan-headers
|
|
|
|
vulkan-loader
|
|
|
|
vulkan-tools
|
2022-09-08 04:59:40 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" "prefix=" ];
|
|
|
|
|
2023-10-19 10:58:38 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = vkdt;
|
|
|
|
};
|
|
|
|
|
2022-09-08 04:59:40 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Vulkan-powered raw image processor";
|
|
|
|
homepage = "https://github.com/hanatos/vkdt";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ paperdigits ];
|
2023-01-28 22:08:51 +00:00
|
|
|
platforms = platforms.linux;
|
2022-09-08 04:59:40 +00:00
|
|
|
};
|
|
|
|
}
|