Merge pull request #272579 from unclamped/vibrantlinux
vibrantLinux: init at 2.1.10
This commit is contained in:
commit
76702cf9d7
2 changed files with 87 additions and 0 deletions
32
pkgs/by-name/li/libvibrant/package.nix
Normal file
32
pkgs/by-name/li/libvibrant/package.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, makeWrapper
|
||||
, libX11
|
||||
, libXrandr
|
||||
, linuxPackages
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libvibrant";
|
||||
version = "2100c09";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "libvibrant";
|
||||
repo = "libvibrant";
|
||||
rev = version;
|
||||
hash = "sha256-nVODwP/PQgYBTHnSplgrkdNOLsF7N+vZ8iPL7gArVNY=";
|
||||
};
|
||||
|
||||
buildInputs = [ libX11 libXrandr linuxPackages.nvidia_x11.settings.libXNVCtrl ];
|
||||
nativeBuildInputs = [ cmake makeWrapper ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple library to adjust color saturation of X11 outputs";
|
||||
homepage = "https://github.com/libvibrant/libvibrant";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
mainProgram = "vibrant-cli";
|
||||
};
|
||||
}
|
55
pkgs/by-name/vi/vibrantlinux/package.nix
Normal file
55
pkgs/by-name/vi/vibrantlinux/package.nix
Normal file
|
@ -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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue