Last active
September 28, 2023 20:46
-
-
Save arjan-s/004ea831d731b3cbfe93fb3ec8fe7e53 to your computer and use it in GitHub Desktop.
SceneFX in Qtile on NixOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pywlroots = pprev.pywlroots.overridePythonAttrs (_: rec { | |
version = "0.16.5"; | |
src = super.fetchPypi { | |
inherit version; | |
pname = "pywlroots"; | |
hash = "sha256-W43RCJektumgvO9K3K3mHR1BiyZXsHj4fN2EkGlJChQ="; | |
}; | |
postPatch = '' | |
substituteInPlace wlroots/ffi_build.py \ | |
--replace 'libraries=["wlroots"],' 'libraries=["wlroots","scenefx"],' | |
''; | |
buildInputs = with super; [libinput libxkbcommon pixman xorg.libxcb xorg.xcbutilwm udev wayland wlroots_0_16 scenefx]; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
lib, | |
stdenv, | |
fetchFromGitHub, | |
meson, | |
ninja, | |
cmake, | |
pkg-config, | |
wlroots_0_16, | |
wayland, | |
libdrm, | |
libxkbcommon, | |
udev, | |
pixman, | |
wayland-protocols, | |
libGL, | |
mesa, | |
}: | |
stdenv.mkDerivation rec { | |
pname = "scenefx"; | |
version = "unstable-2023-08-06"; | |
src = fetchFromGitHub { | |
owner = "wlrfx"; | |
repo = "scenefx"; | |
rev = "b929a2bbadf467864796ad4ec90882ce86cfebff"; | |
hash = "sha256-c/zRWz6njC3RsHzIcWpd5m7CXGprrIhKENpaQVH7Owk="; | |
}; | |
nativeBuildInputs = [ | |
meson | |
ninja | |
cmake | |
pkg-config | |
]; | |
buildInputs = [ | |
wlroots_0_16 | |
wayland | |
libdrm | |
libxkbcommon | |
udev | |
pixman | |
wayland-protocols | |
libGL | |
mesa | |
]; | |
meta = with lib; { | |
description = "A drop-in replacement for the wlroots scene API that allows wayland compositors to render surfaces with eye-candy effects"; | |
homepage = "https://github.com/wlrfx/scenefx/"; | |
license = licenses.mit; | |
maintainers = with maintainers; [arjan-s]; | |
mainProgram = "scenefx"; | |
platforms = platforms.all; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment