2021-10-19 06:02:30 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2023-01-29 16:00:15 +00:00
|
|
|
, fetchFromGitHub
|
2021-10-19 06:02:30 +00:00
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, i2c-tools
|
|
|
|
, udev
|
|
|
|
, kmod
|
|
|
|
, libgudev
|
|
|
|
, libusb1
|
|
|
|
, libdrm
|
|
|
|
, xorg
|
|
|
|
}:
|
2017-06-14 16:56:35 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ddcutil";
|
2023-01-29 16:00:15 +00:00
|
|
|
version = "1.4.1";
|
2017-06-14 16:56:35 +00:00
|
|
|
|
2023-01-29 16:00:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rockowitz";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-y3mubdInYa4gpxhdw2JcRhnhd12O7jNq/oF3qoP82LU=";
|
2017-06-14 16:56:35 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2021-10-19 06:02:30 +00:00
|
|
|
|
2017-06-14 16:56:35 +00:00
|
|
|
buildInputs = [
|
2021-10-19 06:02:30 +00:00
|
|
|
glib
|
|
|
|
i2c-tools
|
|
|
|
kmod
|
|
|
|
libdrm
|
|
|
|
libgudev
|
|
|
|
libusb1
|
|
|
|
udev
|
|
|
|
xorg.libXrandr
|
2017-06-14 16:56:35 +00:00
|
|
|
];
|
|
|
|
|
2021-10-19 06:02:30 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-10-19 06:02:30 +00:00
|
|
|
homepage = "http://www.ddcutil.com/";
|
2017-06-14 16:56:35 +00:00
|
|
|
description = "Query and change Linux monitor settings using DDC/CI and USB";
|
2021-10-19 06:02:30 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
2022-11-09 15:41:13 +00:00
|
|
|
changelog = "https://github.com/rockowitz/ddcutil/blob/v${version}/CHANGELOG.md";
|
2017-06-14 16:56:35 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|