about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/wayland
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/wayland')
-rw-r--r--nixpkgs/pkgs/tools/wayland/chayang/default.nix52
-rw-r--r--nixpkgs/pkgs/tools/wayland/cliphist/default.nix1
-rw-r--r--nixpkgs/pkgs/tools/wayland/slurp/default.nix7
-rw-r--r--nixpkgs/pkgs/tools/wayland/wayland-proxy-virtwl/default.nix16
-rw-r--r--nixpkgs/pkgs/tools/wayland/wl-clip-persist/default.nix7
-rw-r--r--nixpkgs/pkgs/tools/wayland/wl-mirror/default.nix5
6 files changed, 71 insertions, 17 deletions
diff --git a/nixpkgs/pkgs/tools/wayland/chayang/default.nix b/nixpkgs/pkgs/tools/wayland/chayang/default.nix
new file mode 100644
index 000000000000..ccfba6a0cf02
--- /dev/null
+++ b/nixpkgs/pkgs/tools/wayland/chayang/default.nix
@@ -0,0 +1,52 @@
+{ lib
+, stdenv
+, fetchFromSourcehut
+, meson
+, ninja
+, pkg-config
+, wayland-scanner
+, wayland-protocols
+, wayland
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "chayang";
+  version = "0.1.0";
+
+  src = fetchFromSourcehut {
+    owner = "~emersion";
+    repo = "chayang";
+    rev = "v${finalAttrs.version}";
+    hash = "sha256-3Vu9/Bu2WQe2Yx/2BK25pEpuPNwX6g3qoFUMznCFHeI=";
+  };
+
+  strictDeps = true;
+
+  pkgsBuildBuild = [
+    pkg-config
+  ];
+
+  nativeBuildInputs = [
+    meson
+    ninja
+    pkg-config
+    wayland-scanner
+  ];
+
+  buildInputs = [
+    wayland-protocols
+    wayland
+  ];
+
+  meta = with lib; {
+    description = "Gradually dim the screen on Wayland";
+    homepage = "https://git.sr.ht/~emersion/chayang/";
+    license = licenses.mit;
+    longDescription = ''
+      Gradually dim the screen on Wayland.
+      Can be used to implement a grace period before locking the session.
+    '';
+    maintainers = with maintainers; [ mxkrsv ];
+    platforms = platforms.linux;
+  };
+})
diff --git a/nixpkgs/pkgs/tools/wayland/cliphist/default.nix b/nixpkgs/pkgs/tools/wayland/cliphist/default.nix
index 9ca747ca46ba..163a15d2adc1 100644
--- a/nixpkgs/pkgs/tools/wayland/cliphist/default.nix
+++ b/nixpkgs/pkgs/tools/wayland/cliphist/default.nix
@@ -19,5 +19,6 @@ buildGoModule rec {
     license = licenses.gpl3Only;
     platforms = platforms.linux;
     maintainers = with maintainers; [ dit7ya ];
+    mainProgram = "cliphist";
   };
 }
diff --git a/nixpkgs/pkgs/tools/wayland/slurp/default.nix b/nixpkgs/pkgs/tools/wayland/slurp/default.nix
index 50c02d83be23..327cc7e91d1f 100644
--- a/nixpkgs/pkgs/tools/wayland/slurp/default.nix
+++ b/nixpkgs/pkgs/tools/wayland/slurp/default.nix
@@ -47,11 +47,12 @@ stdenv.mkDerivation (finalAttrs: {
   mesonFlags = [ (lib.mesonEnable "man-pages" buildDocs) ];
 
   meta = with lib; {
-    homepage = "https://github.com/emersion/slurp";
-    description = "Select a region in a Wayland compositor";
     changelog = "https://github.com/emersion/slurp/releases/tag/v${finalAttrs.version}";
+    description = "Select a region in a Wayland compositor";
+    inherit (wayland.meta) platforms;
+    homepage = "https://github.com/emersion/slurp";
     license = licenses.mit;
+    mainProgram = "slurp";
     maintainers = with maintainers; [ buffet ];
-    inherit (wayland.meta) platforms;
   };
 })
diff --git a/nixpkgs/pkgs/tools/wayland/wayland-proxy-virtwl/default.nix b/nixpkgs/pkgs/tools/wayland/wayland-proxy-virtwl/default.nix
index 164605b3d8a2..74e6c5359ed4 100644
--- a/nixpkgs/pkgs/tools/wayland/wayland-proxy-virtwl/default.nix
+++ b/nixpkgs/pkgs/tools/wayland/wayland-proxy-virtwl/default.nix
@@ -3,24 +3,20 @@
 , ocamlPackages
 , pkg-config
 , libdrm
+, unstableGitUpdater
 }:
 
 ocamlPackages.buildDunePackage rec {
   pname = "wayland-proxy-virtwl";
-  version = "unstable-2022-09-22";
+  version = "unstable-2023-08-13";
 
   src = fetchFromGitHub {
     owner = "talex5";
     repo = pname;
-    rev = "5940346db2a4427f21c7b30a2593b179af36a935";
-    sha256 = "0jnr5q52nb3yqr7ykvvb902xsad24cdi9imkslcsa5cnzb4095rw";
+    rev = "050c49a377808105b895e81e7e498f35cc151e58";
+    sha256 = "sha256-6YJv3CCED6LUSPFwYQyHUFkkvOWZGPNHVzw60b5F8+c=";
   };
 
-  postPatch = ''
-    # no need to vendor
-    rm -r ocaml-wayland
-  '';
-
   minimalOCamlVersion = "4.12";
   duneVersion = "3";
 
@@ -40,11 +36,13 @@ ocamlPackages.buildDunePackage rec {
 
   doCheck = true;
 
+  passthru.updateScript = unstableGitUpdater { };
+
   meta = with lib; {
     homepage = "https://github.com/talex5/wayland-virtwl-proxy";
     description = "Proxy Wayland connections across a VM boundary";
     license = licenses.asl20;
-    maintainers = [ maintainers.sternenseemann ];
+    maintainers = [ maintainers.qyliss maintainers.sternenseemann ];
     platforms = platforms.linux;
   };
 }
diff --git a/nixpkgs/pkgs/tools/wayland/wl-clip-persist/default.nix b/nixpkgs/pkgs/tools/wayland/wl-clip-persist/default.nix
index 0d5626ba1895..0828a34be840 100644
--- a/nixpkgs/pkgs/tools/wayland/wl-clip-persist/default.nix
+++ b/nixpkgs/pkgs/tools/wayland/wl-clip-persist/default.nix
@@ -29,11 +29,12 @@ rustPlatform.buildRustPackage {
   ];
 
   meta = with lib; {
-    inherit (wayland.meta) platforms;
-    homepage = "https://github.com/Linus789/wl-clip-persist";
+    broken = stdenv.isDarwin;
     description = "Keep Wayland clipboard even after programs close";
+    homepage = "https://github.com/Linus789/wl-clip-persist";
+    inherit (wayland.meta) platforms;
     license = licenses.mit;
+    mainProgram = "wl-clip-persist";
     maintainers = with maintainers; [ thiagokokada ];
-    broken = stdenv.isDarwin;
   };
 }
diff --git a/nixpkgs/pkgs/tools/wayland/wl-mirror/default.nix b/nixpkgs/pkgs/tools/wayland/wl-mirror/default.nix
index 8e19bdc1d9e4..0746dd5ff09b 100644
--- a/nixpkgs/pkgs/tools/wayland/wl-mirror/default.nix
+++ b/nixpkgs/pkgs/tools/wayland/wl-mirror/default.nix
@@ -28,16 +28,17 @@ in
 
 stdenv.mkDerivation rec {
   pname = "wl-mirror";
-  version = "0.13.1";
+  version = "0.13.2";
 
   src = fetchFromGitHub {
     owner = "Ferdi265";
     repo = "wl-mirror";
     rev = "v${version}";
-    hash = "sha256-qYJmcsID5qbUs27ZCU2HkWVVnBmxWmyzSgruLPB4jI8=";
+    hash = "sha256-dmdRe4GZ1W2gD7ZF1MudBqfZIm9HyBjISa+xB54BLz4=";
   };
 
   strictDeps = true;
+  depsBuildBuild = [ pkg-config ];
   nativeBuildInputs = [ cmake pkg-config wayland-scanner scdoc makeWrapper ];
   buildInputs = [ libGL wayland wayland-protocols wlr-protocols bash ];