nixpkgs/pkgs/tools/misc/ddcutil/default.nix

49 lines
917 B
Nix
Raw Normal View History

2021-10-19 06:02:30 +00:00
{ lib
, stdenv
2023-08-18 09:26:47 +00:00
, fetchurl
2021-10-19 06:02:30 +00:00
, autoreconfHook
, pkg-config
, glib
2023-10-29 15:47:57 +00:00
, jansson
2021-10-19 06:02:30 +00:00
, udev
, libgudev
, libusb1
, libdrm
, xorg
}:
2017-06-14 16:56:35 +00:00
stdenv.mkDerivation rec {
pname = "ddcutil";
2023-10-29 15:47:57 +00:00
version = "2.0.0";
2017-06-14 16:56:35 +00:00
2023-08-18 09:26:47 +00:00
src = fetchurl {
url = "https://www.ddcutil.com/tarballs/ddcutil-${version}.tar.gz";
2023-10-29 15:47:57 +00:00
hash = "sha256-CunFRQHKk3q8CU60TSRnRoCW7+9X1+JpJHm773HhmZs=";
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
2023-10-29 15:47:57 +00:00
jansson
2021-10-19 06:02:30 +00:00
libdrm
libgudev
libusb1
udev
2023-10-29 15:47:57 +00:00
xorg.libXext
2021-10-19 06:02:30 +00:00
xorg.libXrandr
2017-06-14 16:56:35 +00:00
];
2021-10-19 06:02:30 +00:00
enableParallelBuilding = true;
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;
maintainers = with maintainers; [ rnhmjoj ];
changelog = "https://github.com/rockowitz/ddcutil/blob/v${version}/CHANGELOG.md";
2017-06-14 16:56:35 +00:00
};
}