diff options
author | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2024-04-29 15:06:28 -0400 |
---|---|---|
committer | éclairevoyant <848000+eclairevoyant@users.noreply.github.com> | 2024-04-29 15:35:15 -0400 |
commit | 21a82bb1afa55aad5e2c07d3c121167b6bba8fe4 (patch) | |
tree | e0c225314ebcf66b6257ef4a260e678619c55156 /pkgs/by-name/sc | |
parent | a1d4b812336cb139e3c77854ad778f8e2bdfaae5 (diff) |
scenefx: init at 0.1
Diffstat (limited to 'pkgs/by-name/sc')
-rw-r--r-- | pkgs/by-name/sc/scenefx/package.nix | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/pkgs/by-name/sc/scenefx/package.nix b/pkgs/by-name/sc/scenefx/package.nix new file mode 100644 index 0000000000000..c9b50e5af047b --- /dev/null +++ b/pkgs/by-name/sc/scenefx/package.nix @@ -0,0 +1,64 @@ +{ + lib, + stdenv, + fetchFromGitHub, + meson, + ninja, + wlroots, + scdoc, + pkg-config, + wayland, + libdrm, + libxkbcommon, + pixman, + wayland-protocols, + libGL, + mesa, + validatePkgConfig, + testers, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "scenefx"; + version = "0.1"; + + src = fetchFromGitHub { + owner = "wlrfx"; + repo = "scenefx"; + rev = "refs/tags/${finalAttrs.version}"; + hash = "sha256-vBmunqXwGbMNiGRd372TdMU4siWhIVYn5RVYne9C7uQ="; + }; + + strictDeps = true; + + nativeBuildInputs = [ + meson + ninja + pkg-config + scdoc + validatePkgConfig + ]; + + buildInputs = [ + libdrm + libGL + libxkbcommon + mesa + pixman + wayland + wayland-protocols + wlroots + ]; + + passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; + + meta = { + 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 = lib.licenses.mit; + maintainers = with lib.maintainers; [ eclairevoyant ]; + mainProgram = "scenefx"; + pkgConfigModules = [ "scenefx" ]; + platforms = lib.platforms.all; + }; +}) |