summary refs log tree commit diff
path: root/pkgs/tools/wayland
diff options
context:
space:
mode:
authorYevhen Shymotiuk <yevhenshymotiuk@pm.me>2021-12-14 17:06:13 +0200
committerYevhen Shymotiuk <yevhenshymotiuk@pm.me>2021-12-27 19:32:24 +0200
commita94f0afd3f28408402fde5db3dc9ad028390177c (patch)
treecc3f26926c46c6d15b38a2a8c2081020ed845582 /pkgs/tools/wayland
parentdb2588598caa0f1f96f188b1223a449519a6c1d8 (diff)
downloadnixpkgs-a94f0afd3f28408402fde5db3dc9ad028390177c.tar
nixpkgs-a94f0afd3f28408402fde5db3dc9ad028390177c.tar.gz
nixpkgs-a94f0afd3f28408402fde5db3dc9ad028390177c.tar.bz2
nixpkgs-a94f0afd3f28408402fde5db3dc9ad028390177c.tar.lz
nixpkgs-a94f0afd3f28408402fde5db3dc9ad028390177c.tar.xz
nixpkgs-a94f0afd3f28408402fde5db3dc9ad028390177c.tar.zst
nixpkgs-a94f0afd3f28408402fde5db3dc9ad028390177c.zip
wluma: init at 2.0.1
Diffstat (limited to 'pkgs/tools/wayland')
-rw-r--r--pkgs/tools/wayland/wluma/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/wayland/wluma/default.nix b/pkgs/tools/wayland/wluma/default.nix
new file mode 100644
index 00000000000..2921e3858b4
--- /dev/null
+++ b/pkgs/tools/wayland/wluma/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, fetchFromGitHub
+, makeWrapper
+, rustPlatform
+, vulkan-loader
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "wluma";
+  version = "2.0.1";
+
+  src = fetchFromGitHub {
+    owner = "maximbaz";
+    repo = "wluma";
+    rev = version;
+    sha256 = "sha256-fqBEJS+SQoPNNEw6jyoiZjq/chY73bQ+cM21F8RdNPE=";
+  };
+
+  nativeBuildInputs = [ makeWrapper ];
+
+  postInstall = ''
+    wrapProgram $out/bin/wluma \
+      --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ vulkan-loader ]}"
+  '';
+
+  cargoSha256 = "sha256-dZBA6VeJRHmqpazRwjLP1kYcYYN5LCFWkIaXqp4/RkQ=";
+
+  meta = with lib; {
+    description = "Automatic brightness adjustment based on screen contents and ALS";
+    homepage = "https://github.com/maximbaz/wluma";
+    license = licenses.isc;
+    maintainers = with maintainers; [ yevhenshymotiuk ];
+    platforms = platforms.linux;
+  };
+}