nixpkgs/pkgs/by-name/vk/vkdt/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

94 lines
1.5 KiB
Nix
Raw Normal View History

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
, 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
};
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";
nativeBuildInputs = [
2024-10-20 09:12:23 +00:00
cargo
2022-09-08 04:59:40 +00:00
clang
cmake
glslang
2022-09-08 04:59:40 +00:00
llvm
llvmPackages.openmp
pkg-config
rsync
2024-10-20 09:12:23 +00:00
rustPlatform.cargoSetupHook
xxd
];
buildInputs = [
2024-10-20 09:12:23 +00:00
alsa-lib
2022-09-08 04:59:40 +00:00
exiv2
ffmpeg
freetype
glfw
libjpeg
2022-09-08 04:59:40 +00:00
libmad
libvorbis
llvmPackages.openmp
pugixml
vulkan-headers
vulkan-loader
vulkan-tools
2022-09-08 04:59:40 +00:00
];
dontUseCmakeConfigure = true;
makeFlags = [ "DESTDIR=$(out)" "prefix=" ];
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
};
}