about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/li/libvibrant/package.nix
blob: f9802bddafa8ecb645eca8e9f78ba1564b2e66ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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";
  };
}