mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
vkBasalt: init at 0.3.2.4
This commit is contained in:
parent
ebc22e9921
commit
df3a19b9d7
42
pkgs/tools/graphics/vkBasalt/default.nix
Normal file
42
pkgs/tools/graphics/vkBasalt/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, glslang
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, libX11
|
||||
, spirv-headers
|
||||
, vulkan-headers
|
||||
, vkBasalt32
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "vkBasalt";
|
||||
version = "0.3.2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "DadSchoorse";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "01iplj6dlw2vl35hyci5m5yp8jmzcwng6c3jk3wn97jpv6m3hjqz";
|
||||
};
|
||||
|
||||
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;
|
||||
maintainers = with maintainers; [ metadark ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -8602,6 +8602,10 @@ in
|
|||
|
||||
vix = callPackage ../tools/misc/vix { };
|
||||
|
||||
vkBasalt = callPackage ../tools/graphics/vkBasalt {
|
||||
vkBasalt32 = pkgsi686Linux.vkBasalt;
|
||||
};
|
||||
|
||||
vnc2flv = callPackage ../tools/video/vnc2flv {};
|
||||
|
||||
vncrec = callPackage ../tools/video/vncrec { };
|
||||
|
|
Loading…
Reference in a new issue