3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/ddcutil/default.nix

51 lines
850 B
Nix
Raw Normal View History

2021-10-19 07:02:30 +01:00
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, glib
, i2c-tools
, udev
, kmod
, libgudev
, libusb1
, libdrm
, xorg
}:
2017-06-14 17:56:35 +01:00
stdenv.mkDerivation rec {
pname = "ddcutil";
2021-10-19 07:02:30 +01:00
version = "1.2.0";
2017-06-14 17:56:35 +01:00
src = fetchFromGitHub {
2021-10-19 07:02:30 +01:00
owner = "rockowitz";
repo = "ddcutil";
rev = "v${version}";
sha256 = "sha256-MH7WnJgROgLvttQEbd/21mLRFElObp4KINy8RarqkRo=";
2017-06-14 17:56:35 +01:00
};
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ autoreconfHook pkg-config ];
2021-10-19 07:02:30 +01:00
2017-06-14 17:56:35 +01:00
buildInputs = [
2021-10-19 07:02:30 +01:00
glib
i2c-tools
kmod
libdrm
libgudev
libusb1
udev
xorg.libXrandr
2017-06-14 17:56:35 +01:00
];
2021-10-19 07:02:30 +01:00
enableParallelBuilding = true;
meta = with lib; {
2021-10-19 07:02:30 +01:00
homepage = "http://www.ddcutil.com/";
2017-06-14 17:56:35 +01:00
description = "Query and change Linux monitor settings using DDC/CI and USB";
2021-10-19 07:02:30 +01:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ rnhmjoj ];
2017-06-14 17:56:35 +01:00
};
}