5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
49 lines
950 B
Nix
49 lines
950 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, glib
|
|
, jansson
|
|
, udev
|
|
, libgudev
|
|
, libusb1
|
|
, libdrm
|
|
, xorg
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ddcutil";
|
|
version = "2.1.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.ddcutil.com/tarballs/ddcutil-${version}.tar.gz";
|
|
hash = "sha256-4U/igqtgw2rwyuhEkV1pWYPIyNZEt2N6hlXJ9bDUyRw=";
|
|
};
|
|
|
|
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.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
changelog = "https://github.com/rockowitz/ddcutil/blob/v${version}/CHANGELOG.md";
|
|
mainProgram = "ddcutil";
|
|
};
|
|
}
|
|
|