wluma: 4.1.2 -> 4.2.0

This commit is contained in:
Lin Yinfeng 2023-04-16 16:50:45 +08:00
parent a0db25cdbe
commit a6ebd8a2ae
No known key found for this signature in database
GPG key ID: 46947CB61521FC42
2 changed files with 469 additions and 191 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,30 +1,29 @@
{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, rustPlatform
, vulkan-loader
, wayland
, pkg-config
, udev
, v4l-utils
, llvmPackages
}:
rustPlatform.buildRustPackage rec {
pname = "wluma";
version = "4.1.2";
version = "4.2.0";
src = fetchFromGitHub {
owner = "maximbaz";
repo = "wluma";
rev = version;
sha256 = "sha256-kUYh4RmD4zRI3ZNZWl2oWcO0Ze5czLBXUgPMl/cLW/I=";
sha256 = "sha256-6qZlwjzBPDkr2YHzDYeKQOuoozV7rpl8dojqTTzInqg=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"toml-0.5.8" = "sha256-aOq5ERYXP329k1d6z8AS987KlFRRcPZhMHOzxnSRXZg=";
"toml-0.5.9" = "sha256-WUQFF9Hfo3JK65AKAF7qNZex6l7F3N8HXmJlu8cJUEE=";
};
};
@ -37,16 +36,18 @@ rustPlatform.buildRustPackage rec {
buildInputs = [
udev
v4l-utils
vulkan-loader
];
postInstall = ''
wrapProgram $out/bin/wluma \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ vulkan-loader ]}"
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ wayland ]}"
'';
meta = with lib; {
description = "Automatic brightness adjustment based on screen contents and ALS";
homepage = "https://github.com/maximbaz/wluma";
changelog = "https://github.com/maximbaz/wluma/releases/tag/${version}";
license = licenses.isc;
maintainers = with maintainers; [ yshym jmc-figueira ];
platforms = platforms.linux;