mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #147297 from twitchyliquid64/wl-mirror2
This commit is contained in:
commit
9217db50b7
2 changed files with 47 additions and 0 deletions
45
pkgs/tools/wayland/wl-mirror/default.nix
Normal file
45
pkgs/tools/wayland/wl-mirror/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, pkg-config
|
||||
, wayland
|
||||
, wayland-protocols
|
||||
, wayland-scanner
|
||||
, wlr-protocols
|
||||
, libGL
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wl-mirror";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Ferdi265";
|
||||
repo = "wl-mirror";
|
||||
rev = "v${version}";
|
||||
sha256 = "1wjdjzj6h1q51yg70gdrq2yrgg6ihamcwhizxfrjq8955yy2y6ly";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace 'WL_PROTOCOL_DIR "/usr' 'WL_PROTOCOL_DIR "${wayland-protocols}' \
|
||||
--replace 'WLR_PROTOCOL_DIR "/usr' 'WLR_PROTOCOL_DIR "${wlr-protocols}'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config wayland-scanner ];
|
||||
buildInputs = [
|
||||
libGL
|
||||
wayland
|
||||
wayland-protocols
|
||||
wlr-protocols
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/Ferdi265/wl-mirror";
|
||||
description = "Mirrors an output onto a Wayland surface.";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ twitchyliquid64 ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
|
@ -2563,6 +2563,8 @@ with pkgs;
|
|||
|
||||
wl-clipboard = callPackage ../tools/wayland/wl-clipboard { };
|
||||
|
||||
wl-mirror = callPackage ../tools/wayland/wl-mirror { };
|
||||
|
||||
wlogout = callPackage ../tools/wayland/wlogout { };
|
||||
|
||||
wlr-randr = callPackage ../tools/wayland/wlr-randr { };
|
||||
|
|
Loading…
Reference in a new issue