From 5ad330eaa842f3793160a0b7389fb89b91fa1403 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 5 Apr 2025 07:54:37 +0000 Subject: [PATCH] wl-mirror: 0.17.0 -> 0.18.1 --- pkgs/by-name/wl/wl-mirror/package.nix | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/wl/wl-mirror/package.nix b/pkgs/by-name/wl/wl-mirror/package.nix index 2f6f15f5badb..7f461603a55d 100644 --- a/pkgs/by-name/wl/wl-mirror/package.nix +++ b/pkgs/by-name/wl/wl-mirror/package.nix @@ -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";