Merge pull request #150725 from yevhenshymotiuk/wluma-2.0.1

This commit is contained in:
legendofmiracles 2021-12-31 09:28:01 -06:00 committed by GitHub
commit 823ff3654b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View file

@ -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;
};
}

View file

@ -2628,6 +2628,8 @@ with pkgs;
wlsunset = callPackage ../tools/wayland/wlsunset { };
wluma = callPackage ../tools/wayland/wluma { };
wob = callPackage ../tools/wayland/wob { };
wshowkeys = callPackage ../tools/wayland/wshowkeys { };