wl-mirror: 0.17.0 -> 0.18.1 (#389597)

This commit is contained in:
Weijia Wang
2025-04-24 09:08:27 +02:00
committed by GitHub
+20 -5
View File
@@ -9,9 +9,11 @@
wayland-scanner,
wlr-protocols,
libGL,
libgbm,
bash,
installExampleScripts ? true,
makeWrapper,
installShellFiles,
pipectl,
slurp,
rofi,
@@ -29,13 +31,13 @@ in
stdenv.mkDerivation rec {
pname = "wl-mirror";
version = "0.17.0";
version = "0.18.1";
src = fetchFromGitHub {
owner = "Ferdi265";
repo = "wl-mirror";
rev = "v${version}";
hash = "sha256-E8mbCMfmN3key1W3m8YbH1wKa56yESiXujACfKFS/+s=";
hash = "sha256-kaWzcXXXHNCOHJvb2wpil+Jcqm/cF5JV3IhvDC67YeU=";
};
strictDeps = true;
@@ -46,9 +48,11 @@ stdenv.mkDerivation rec {
wayland-scanner
scdoc
makeWrapper
installShellFiles
];
buildInputs = [
libGL
libgbm
wayland
wayland-protocols
wlr-protocols
@@ -65,11 +69,22 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DINSTALL_EXAMPLE_SCRIPTS=${if installExampleScripts then "ON" else "OFF"}"
"-DINSTALL_DOCUMENTATION=ON"
"-DWITH_GBM=ON"
];
postInstall = lib.optionalString installExampleScripts ''
wrapProgram $out/bin/wl-present --prefix PATH ":" ${wl-present-binpath}
'';
postInstall =
''
installShellCompletion --cmd wl-mirror \
--bash ../scripts/completions/bash-completions/_wl-mirror \
--zsh ../scripts/completions/zsh-completions/_wl-mirror
installShellCompletion --cmd wl-present \
--bash ../scripts/completions/bash-completions/_wl-present \
--zsh ../scripts/completions/zsh-completions/_wl-present
''
+ lib.optionalString installExampleScripts ''
wrapProgram $out/bin/wl-present --prefix PATH ":" ${wl-present-binpath}
'';
meta = with lib; {
homepage = "https://github.com/Ferdi265/wl-mirror";