83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, glslang
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, libX11
|
|
, spirv-headers
|
|
, vulkan-headers
|
|
, vkbasalt32
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "vkbasalt";
|
|
version = "0.3.2.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DadSchoorse";
|
|
repo = "vkBasalt";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
hash = "sha256-IVlZ6o+1EEEh547rFPN7z+W+EY7MrIM/yUh6+PPkNeI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ glslang meson ninja pkg-config ];
|
|
buildInputs = [ libX11 spirv-headers vulkan-headers ];
|
|
mesonFlags = [ "-Dappend_libdir_vkbasalt=true" ];
|
|
|
|
postInstall = lib.optionalString (stdenv.hostPlatform.system == "x86_64-linux") ''
|
|
install -Dm 644 $src/config/vkBasalt.conf $out/share/vkBasalt/vkBasalt.conf
|
|
# Include 32bit layer in 64bit build
|
|
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;
|
|
maintainers = with maintainers; [ kira-bruneau ];
|
|
platforms = platforms.linux;
|
|
};
|
|
})
|