From f04063d926df5d2063279040fc6220306c47774d Mon Sep 17 00:00:00 2001 From: d4rk Date: Tue, 1 Oct 2024 12:35:01 -0700 Subject: [PATCH] vulkan-hdr-layer-kwin6: init at v0.1 https://github.com/Zamundaaa/VK_hdr_layer Enables HDR support for games (via "gamescope"), and programs like "mpv", that use Vulkan's HDR extensions. This is likely to be a temporary solution until Wayland upstream adopts the necessary protocols, however that has been in the works for many years: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/14 For the time being, this provides a path for users to experiment with HDR, share feedback and hopefully make progress. Arch provides a similar package: https://aur.archlinux.org/packages/vk-hdr-layer-kwin6-git --- maintainers/maintainer-list.nix | 6 +++ .../vu/vulkan-hdr-layer-kwin6/package.nix | 49 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 pkgs/by-name/vu/vulkan-hdr-layer-kwin6/package.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 86ba6402a342e3..ec914653a8cb88 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4696,6 +4696,12 @@ github = "d4ilyrun"; githubId = 34611103; }; + d4rk = { + name = "Anoop Menon"; + email = "d4rk@blackvoltage.org"; + github = "d4rk"; + githubId = 22163; + }; d4rkstar = { name = "Bruno Salzano"; email = "d4rkstar@gmail.com"; diff --git a/pkgs/by-name/vu/vulkan-hdr-layer-kwin6/package.nix b/pkgs/by-name/vu/vulkan-hdr-layer-kwin6/package.nix new file mode 100644 index 00000000000000..250b38a6ee1870 --- /dev/null +++ b/pkgs/by-name/vu/vulkan-hdr-layer-kwin6/package.nix @@ -0,0 +1,49 @@ +{ + lib, + stdenv, + cmake, + fetchgit, + libX11, + meson, + ninja, + pkg-config, + vulkan-headers, + vulkan-loader, + wayland-scanner, + wayland, +}: + +stdenv.mkDerivation rec { + pname = "vulkan-hdr-layer-kwin6"; + version = "0-unstable-2024-10-19"; + + nativeBuildInputs = [ + meson + ninja + pkg-config + cmake + ]; + + buildInputs = [ + vulkan-headers + vulkan-loader + libX11 + wayland-scanner + wayland + ]; + + src = fetchgit { + url = "https://github.com/Zamundaaa/VK_hdr_layer.git"; + rev = "e173f2617262664901039e3c821929afce05d2c1"; + hash = "sha256-hBxRwbn29zFeHcRpfMF6I4piSASpN2AvZY0ci5Utj4U="; + fetchSubmodules = true; + }; + + meta = { + description = "Vulkan Wayland HDR WSI Layer (Xaver Hugl's fork for KWin 6)"; + homepage = "https://github.com/Zamundaaa/VK_hdr_layer"; + license = lib.licenses.mit; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ d4rk ]; + }; +}