mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
94 lines
1.5 KiB
Nix
94 lines
1.5 KiB
Nix
{ 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
|
|
, xxd
|
|
, alsa-lib
|
|
, cargo
|
|
, rustPlatform
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "vkdt";
|
|
version = "0.9.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/hanatos/${pname}/releases/download/${version}/${pname}-${version}.tar.xz";
|
|
hash = "sha256-LXUTDwUjlfyhtXkYW4Zivqt8vyctoz+ID5AQ7gg+d9A=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
lockFile = ./Cargo.lock;
|
|
outputHashes = {
|
|
"rawler-0.6.3" = "sha256-EJ0uWc3pp7ixRxDIdTIVVaT2ph3P2IvuK+ecBSB5HYw=";
|
|
};
|
|
};
|
|
cargoRoot = "src/pipe/modules/i-raw/rawloader-c";
|
|
|
|
nativeBuildInputs = [
|
|
cargo
|
|
clang
|
|
cmake
|
|
glslang
|
|
llvm
|
|
llvmPackages.openmp
|
|
pkg-config
|
|
rsync
|
|
rustPlatform.cargoSetupHook
|
|
xxd
|
|
];
|
|
|
|
buildInputs = [
|
|
alsa-lib
|
|
exiv2
|
|
ffmpeg
|
|
freetype
|
|
glfw
|
|
libjpeg
|
|
libmad
|
|
libvorbis
|
|
llvmPackages.openmp
|
|
pugixml
|
|
vulkan-headers
|
|
vulkan-loader
|
|
vulkan-tools
|
|
];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
makeFlags = [ "DESTDIR=$(out)" "prefix=" ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = vkdt;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Vulkan-powered raw image processor";
|
|
homepage = "https://github.com/hanatos/vkdt";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ paperdigits ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|