From 651beb2a23fb0ae7939c5e0d3c645f487fdaa448 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Sat, 8 Jul 2023 19:26:54 -0300 Subject: [PATCH] wlay: init at unstable-2022-01-26 --- pkgs/tools/wayland/wlay/default.nix | 57 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 59 insertions(+) create mode 100644 pkgs/tools/wayland/wlay/default.nix diff --git a/pkgs/tools/wayland/wlay/default.nix b/pkgs/tools/wayland/wlay/default.nix new file mode 100644 index 000000000000..a766a49d25d9 --- /dev/null +++ b/pkgs/tools/wayland/wlay/default.nix @@ -0,0 +1,57 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, extra-cmake-modules +, glfw3 +, libX11 +, libXau +, libXdmcp +, libepoxy +, libffi +, libxcb +, pkg-config +, wayland +, wayland-scanner +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "wlay"; + version = "unstable-2022-01-26"; + + src = fetchFromGitHub { + owner = "atx"; + repo = "wlay"; + rev = "ed316060ac3ac122c0d3d8918293e19dfe9a6c90"; + hash = "sha256-Lu+EyoDHiXK9QzD4jdwbllCOCl2aEU+uK6/KxC2AUGQ="; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ + cmake + pkg-config + wayland-scanner + ]; + + buildInputs = [ + extra-cmake-modules + glfw3 + libX11 + libXau + libXdmcp + libepoxy + libffi + libxcb + wayland + ]; + + strictDeps = true; + + meta = { + homepage = "https://github.com/atx/wlay"; + description = "Graphical output management for Wayland"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ AndersonTorres ]; + inherit (wayland.meta) platforms; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6022e4996c8a..53c86009dda9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4522,6 +4522,8 @@ with pkgs; wdt = callPackage ../applications/networking/sync/wdt { }; + wlay = callPackage ../tools/wayland/wlay { }; + wl-clip-persist = callPackage ../tools/wayland/wl-clip-persist { }; wl-clipboard = callPackage ../tools/wayland/wl-clipboard { };