depot/third_party/nixpkgs/pkgs/tools/misc/ddcutil/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

48 lines
917 B
Nix

{ lib
, stdenv
, fetchurl
, autoreconfHook
, pkg-config
, glib
, jansson
, udev
, libgudev
, libusb1
, libdrm
, xorg
}:
stdenv.mkDerivation rec {
pname = "ddcutil";
version = "2.0.0";
src = fetchurl {
url = "https://www.ddcutil.com/tarballs/ddcutil-${version}.tar.gz";
hash = "sha256-CunFRQHKk3q8CU60TSRnRoCW7+9X1+JpJHm773HhmZs=";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [
glib
jansson
libdrm
libgudev
libusb1
udev
xorg.libXext
xorg.libXrandr
];
enableParallelBuilding = true;
meta = with lib; {
homepage = "http://www.ddcutil.com/";
description = "Query and change Linux monitor settings using DDC/CI and USB";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ rnhmjoj ];
changelog = "https://github.com/rockowitz/ddcutil/blob/v${version}/CHANGELOG.md";
};
}