git.iko.soy/typeable/nixpkgs
on master help sign in
wl-mirror: 0.5.0 -> 0.8.1
commitef3f32f494ae8257c51614ffeffa9ede0a3e0a45 authorPatrick Hilhorst <git@hilhorst.be> dateSat 1 Jan 2022, 12:59 (5 years ago) parent495c302
1 file changed+25−8
pkgs/tools/wayland/wl-mirror/default.nix+25−8
pkgs/tools/wayland/wl-mirror/default.nix+25−8
@@ -8,17 +8,31 @@
88, wayland-scanner
99, wlr-protocols
1010, libGL
11+, installExampleScripts ? true
12+, makeWrapper
13+, pipectl
14+, slurp
15+, rofi
1116}:
1217
18+let
19+ wl-present-binpath = lib.makeBinPath [
20+ pipectl
21+ rofi
22+ slurp
23+ (placeholder "out")
24+ ];
25+in
26+
1327stdenv.mkDerivation rec {
1428 pname = "wl-mirror";
15− version = "0.5.0";
29+ version = "0.8.1";
1630
1731 src = fetchFromGitHub {
1832 owner = "Ferdi265";
1933 repo = "wl-mirror";
2034 rev = "v${version}";
21− sha256 = "1wjdjzj6h1q51yg70gdrq2yrgg6ihamcwhizxfrjq8955yy2y6ly";
35+ hash = "sha256-P5rvZPpIStlOSGj3PaiXAMPWqgWpkC+4IrixEMwoGJU=";
2236 };
2337
2438 patchPhase = ''
@@ -27,14 +41,17 @@ stdenv.mkDerivation rec {
2741 --replace 'WLR_PROTOCOL_DIR "/usr' 'WLR_PROTOCOL_DIR "${wlr-protocols}'
2842 '';
2943
30− nativeBuildInputs = [ cmake pkg-config wayland-scanner ];
31− buildInputs = [
32− libGL
33− wayland
34− wayland-protocols
35− wlr-protocols
44+ cmakeFlags = [
45+ "-DINSTALL_EXAMPLE_SCRIPTS=${if installExampleScripts then "ON" else "OFF"}"
3646 ];
3747
48+ postInstall = lib.optionalString installExampleScripts ''
49+ wrapProgram $out/bin/wl-present --prefix PATH ":" ${wl-present-binpath}
50+ '';
51+
52+ nativeBuildInputs = [ cmake pkg-config wayland-scanner makeWrapper ];
53+ buildInputs = [ libGL wayland wayland-protocols wlr-protocols ];
54+
3855 meta = with lib; {
3956 homepage = "https://github.com/Ferdi265/wl-mirror";
4057 description = "Mirrors an output onto a Wayland surface.";