diff options
author | Patrick Hilhorst <git@hilhorst.be> | 2022-01-01 12:59:49 +0100 |
---|---|---|
committer | Patrick Hilhorst <git@hilhorst.be> | 2022-01-01 12:59:49 +0100 |
commit | ef3f32f494ae8257c51614ffeffa9ede0a3e0a45 (patch) | |
tree | deb4a1819c0749d9233b61011ebee94a3dde081d /pkgs/tools/wayland | |
parent | 495c3025979b8daf40f40439dd29f1cd21447a96 (diff) | |
download | nixpkgs-ef3f32f494ae8257c51614ffeffa9ede0a3e0a45.tar nixpkgs-ef3f32f494ae8257c51614ffeffa9ede0a3e0a45.tar.gz nixpkgs-ef3f32f494ae8257c51614ffeffa9ede0a3e0a45.tar.bz2 nixpkgs-ef3f32f494ae8257c51614ffeffa9ede0a3e0a45.tar.lz nixpkgs-ef3f32f494ae8257c51614ffeffa9ede0a3e0a45.tar.xz nixpkgs-ef3f32f494ae8257c51614ffeffa9ede0a3e0a45.tar.zst nixpkgs-ef3f32f494ae8257c51614ffeffa9ede0a3e0a45.zip |
wl-mirror: 0.5.0 -> 0.8.1
Diffstat (limited to 'pkgs/tools/wayland')
-rw-r--r-- | pkgs/tools/wayland/wl-mirror/default.nix | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/pkgs/tools/wayland/wl-mirror/default.nix b/pkgs/tools/wayland/wl-mirror/default.nix index 0836723760e..bf89d61adbe 100644 --- a/pkgs/tools/wayland/wl-mirror/default.nix +++ b/pkgs/tools/wayland/wl-mirror/default.nix @@ -8,17 +8,31 @@ , wayland-scanner , wlr-protocols , libGL +, installExampleScripts ? true +, makeWrapper +, pipectl +, slurp +, rofi }: +let + wl-present-binpath = lib.makeBinPath [ + pipectl + rofi + slurp + (placeholder "out") + ]; +in + stdenv.mkDerivation rec { pname = "wl-mirror"; - version = "0.5.0"; + version = "0.8.1"; src = fetchFromGitHub { owner = "Ferdi265"; repo = "wl-mirror"; rev = "v${version}"; - sha256 = "1wjdjzj6h1q51yg70gdrq2yrgg6ihamcwhizxfrjq8955yy2y6ly"; + hash = "sha256-P5rvZPpIStlOSGj3PaiXAMPWqgWpkC+4IrixEMwoGJU="; }; patchPhase = '' @@ -27,14 +41,17 @@ stdenv.mkDerivation rec { --replace 'WLR_PROTOCOL_DIR "/usr' 'WLR_PROTOCOL_DIR "${wlr-protocols}' ''; - nativeBuildInputs = [ cmake pkg-config wayland-scanner ]; - buildInputs = [ - libGL - wayland - wayland-protocols - wlr-protocols + cmakeFlags = [ + "-DINSTALL_EXAMPLE_SCRIPTS=${if installExampleScripts then "ON" else "OFF"}" ]; + postInstall = lib.optionalString installExampleScripts '' + wrapProgram $out/bin/wl-present --prefix PATH ":" ${wl-present-binpath} + ''; + + nativeBuildInputs = [ cmake pkg-config wayland-scanner makeWrapper ]; + 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."; |