commit
2fdcb339cd
2 changed files with 469 additions and 191 deletions
647
pkgs/tools/wayland/wluma/Cargo.lock
generated
647
pkgs/tools/wayland/wluma/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue