@@ -0,0 +1,38 @@
1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, meson
5+, ninja
6+, pkg-config
7+, wayland
8+, wayland-protocols
9+}:
10+
11+stdenv.mkDerivation {
12+ pname = "wdomirror";
13+ version = "unstable-2021-01-08";
14+
15+ src = fetchFromGitHub {
16+ owner = "progandy";
17+ repo = "wdomirror";
18+ rev = "e4a4934e6f739909fbf346cbc001c72690b5c906";
19+ sha256 = "1fz0sajhdjqas3l6mpik8w1k15wbv65hgh9r9vdgfqvw5l6cx7jv";
20+ };
21+
22+ nativeBuildInputs = [ meson ninja pkg-config wayland-protocols ];
23+
24+ buildInputs = [ wayland ];
25+
26+ installPhase = ''
27+ runHook preInstall
28+ install -m755 -D wdomirror $out/bin/wdomirror
29+ runHook postInstall
30+ '';
31+
32+ meta = with lib; {
33+ description = "Mirrors an output of a wlroots compositor to a window";
34+ license = licenses.mit;
35+ platforms = platforms.unix;
36+ maintainers = with maintainers; [ jpas ];
37+ };
38+}