2021-01-27 01:23:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glslang
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, libX11
|
|
|
|
, spirv-headers
|
|
|
|
, vulkan-headers
|
|
|
|
, vkBasalt32
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vkBasalt";
|
2022-02-13 11:42:33 +00:00
|
|
|
version = "0.3.2.5";
|
2021-01-27 01:23:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DadSchoorse";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-13 11:42:33 +00:00
|
|
|
sha256 = "sha256-1UHxPtpmkDNOJwKXVlRN2lpvRm4XPHNwxOBpEikXxqA=";
|
2021-01-27 01:23:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ glslang meson ninja pkg-config ];
|
|
|
|
buildInputs = [ libX11 spirv-headers vulkan-headers ];
|
|
|
|
mesonFlags = [ "-Dappend_libdir_vkbasalt=true" ];
|
|
|
|
|
|
|
|
# Include 32bit layer in 64bit build
|
|
|
|
postInstall = lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") ''
|
|
|
|
ln -s ${vkBasalt32}/share/vulkan/implicit_layer.d/vkBasalt.json \
|
|
|
|
"$out/share/vulkan/implicit_layer.d/vkBasalt32.json"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Vulkan post processing layer for Linux";
|
|
|
|
homepage = "https://github.com/DadSchoorse/vkBasalt";
|
|
|
|
license = licenses.zlib;
|
2021-05-22 15:47:40 +01:00
|
|
|
maintainers = with maintainers; [ kira-bruneau ];
|
2021-01-27 01:23:09 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|