2021-10-17 09:34:42 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2023-08-22 20:05:09 +00:00
|
|
|
, fetchurl
|
2021-10-17 09:34:42 +00:00
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
2023-11-16 04:20:00 +00:00
|
|
|
, jansson
|
2021-10-17 09:34:42 +00:00
|
|
|
, udev
|
|
|
|
, libgudev
|
|
|
|
, libusb1
|
|
|
|
, libdrm
|
|
|
|
, xorg
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ddcutil";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.1.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.ddcutil.com/tarballs/ddcutil-${version}.tar.gz";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-4U/igqtgw2rwyuhEkV1pWYPIyNZEt2N6hlXJ9bDUyRw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2021-10-17 09:34:42 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-10-17 09:34:42 +00:00
|
|
|
glib
|
2023-11-16 04:20:00 +00:00
|
|
|
jansson
|
2021-10-17 09:34:42 +00:00
|
|
|
libdrm
|
|
|
|
libgudev
|
|
|
|
libusb1
|
|
|
|
udev
|
2023-11-16 04:20:00 +00:00
|
|
|
xorg.libXext
|
2021-10-17 09:34:42 +00:00
|
|
|
xorg.libXrandr
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-10-17 09:34:42 +00:00
|
|
|
homepage = "http://www.ddcutil.com/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Query and change Linux monitor settings using DDC/CI and USB";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2021-10-17 09:34:42 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
2022-11-21 17:40:18 +00:00
|
|
|
changelog = "https://github.com/rockowitz/ddcutil/blob/v${version}/CHANGELOG.md";
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "ddcutil";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|