summary refs log tree commit diff
path: root/pkgs/tools/wayland
diff options
context:
space:
mode:
authorMaxim Karasev <mxkrsv@disroot.org>2023-04-17 14:26:36 +0300
committerMaxim Karasev <mxkrsv@disroot.org>2023-08-07 19:49:26 +0300
commit47851fa30f24ea129cad6cbcae7834591793efdb (patch)
treed7692a2d30ab46c2a626904ff403429daa299d3c /pkgs/tools/wayland
parentb6a2d04e3339d882fb3060ecd1ffa941ed98fb11 (diff)
downloadnixpkgs-47851fa30f24ea129cad6cbcae7834591793efdb.tar
nixpkgs-47851fa30f24ea129cad6cbcae7834591793efdb.tar.gz
nixpkgs-47851fa30f24ea129cad6cbcae7834591793efdb.tar.bz2
nixpkgs-47851fa30f24ea129cad6cbcae7834591793efdb.tar.lz
nixpkgs-47851fa30f24ea129cad6cbcae7834591793efdb.tar.xz
nixpkgs-47851fa30f24ea129cad6cbcae7834591793efdb.tar.zst
nixpkgs-47851fa30f24ea129cad6cbcae7834591793efdb.zip
chayang: init at 0.1.0
Diffstat (limited to 'pkgs/tools/wayland')
-rw-r--r--pkgs/tools/wayland/chayang/default.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/tools/wayland/chayang/default.nix b/pkgs/tools/wayland/chayang/default.nix
new file mode 100644
index 00000000000..ccfba6a0cf0
--- /dev/null
+++ b/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;
+  };
+})