2024-11-10 13:39:30 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
libX11,
|
|
|
|
libXrandr,
|
|
|
|
linuxPackages,
|
2023-12-06 23:36:08 +00:00
|
|
|
}:
|
|
|
|
|
2024-04-15 12:53:36 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2023-12-06 23:36:08 +00:00
|
|
|
pname = "libvibrant";
|
2024-04-15 12:53:36 +00:00
|
|
|
version = "1.1.1";
|
2023-12-06 23:36:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libvibrant";
|
|
|
|
repo = "libvibrant";
|
2024-04-15 12:53:36 +00:00
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-APja211+U0WVuCRz8f3VIAQLF4oPhh0CJ3Y5EgSJnh0=";
|
2023-12-06 23:36:08 +00:00
|
|
|
};
|
|
|
|
|
2024-04-15 12:53:36 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libX11
|
|
|
|
libXrandr
|
|
|
|
linuxPackages.nvidia_x11.settings.libXNVCtrl
|
|
|
|
];
|
2023-12-06 23:36:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple library to adjust color saturation of X11 outputs";
|
|
|
|
homepage = "https://github.com/libvibrant/libvibrant";
|
2024-04-15 12:53:36 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2023-12-06 23:36:08 +00:00
|
|
|
platforms = platforms.linux;
|
2024-04-15 12:53:36 +00:00
|
|
|
maintainers = with maintainers; [ Scrumplex ];
|
2023-12-06 23:36:08 +00:00
|
|
|
mainProgram = "vibrant-cli";
|
|
|
|
};
|
2024-04-15 12:53:36 +00:00
|
|
|
})
|