2021-04-26 19:14:03 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
2022-05-18 14:49:53 +00:00
|
|
|
, fetchpatch
|
|
|
|
, wayland-scanner
|
2021-04-26 19:14:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "wdomirror";
|
|
|
|
version = "unstable-2021-01-08";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "progandy";
|
|
|
|
repo = "wdomirror";
|
|
|
|
rev = "e4a4934e6f739909fbf346cbc001c72690b5c906";
|
|
|
|
sha256 = "1fz0sajhdjqas3l6mpik8w1k15wbv65hgh9r9vdgfqvw5l6cx7jv";
|
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/progandy/wdomirror/pull/7
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/progandy/wdomirror/commit/142632208e9ea2b4a4ebd784532efdb8cad7b87c.patch";
|
|
|
|
hash = "sha256-MG71IEwRAjjacAkRoB7Tn45+FbY7LAqTDkVJkoWuQUU=";
|
|
|
|
})
|
|
|
|
];
|
2021-04-26 19:14:03 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config wayland-scanner ];
|
|
|
|
|
|
|
|
buildInputs = [ wayland wayland-protocols ];
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -m755 -D wdomirror $out/bin/wdomirror
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace meson.build \
|
|
|
|
--replace "werror=true" "werror=false"
|
|
|
|
'';
|
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Mirrors an output of a wlroots compositor to a window";
|
2022-09-11 15:47:08 +00:00
|
|
|
homepage = "https://github.com/progandy/wdomirror";
|
2021-04-26 19:14:03 +00:00
|
|
|
license = licenses.mit;
|
2023-03-08 16:32:21 +00:00
|
|
|
platforms = platforms.linux;
|
2021-04-26 19:14:03 +00:00
|
|
|
maintainers = with maintainers; [ jpas ];
|
|
|
|
};
|
|
|
|
}
|