Skip to content

Commit

Permalink
vibrantLinux: init at 2.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
unclamped committed Dec 8, 2023
1 parent 0906f09 commit 2d5fcca
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions pkgs/by-name/vi/vibrantlinux/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{ lib
, stdenv
, fetchFromGitHub
, qt5
, makeWrapper
, libvibrant
, libX11
, libXrandr
, libxcb
, linuxPackages
}:

stdenv.mkDerivation rec {
pname = "vibrantLinux";
version = "2.1.10";

src = fetchFromGitHub {
owner = "libvibrant";
repo = "vibrantLinux";
rev = version;
hash = "sha256-rvJiVId6221hTrfEIvVO9HTMhaZ6KY44Bu3a5MinPHI=";
};

nativeBuildInputs = [
makeWrapper
] ++ (with qt5; [
qmake
wrapQtAppsHook
]);

buildInputs = [
libX11
libXrandr
libxcb
libvibrant
linuxPackages.nvidia_x11.settings.libXNVCtrl
] ++ (with qt5; [
qtbase
qttools
]);

postPatch = ''
substituteInPlace vibrantLinux.pro \
--replace '$$(PREFIX)' '$$PREFIX'
'';

meta = with lib; {
description = "A tool to automate managing your screen's saturation depending on what programs are running";
homepage = "https://github.com/libvibrant/vibrantLinux";
license = licenses.mit;
maintainers = with maintainers; [ unclamped ];
platforms = platforms.linux;
mainProgram = "vibrantLinux";
};
}

0 comments on commit 2d5fcca

Please sign in to comment.