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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
851 B
Nix
Raw Normal View History

2021-10-19 06:02:30 +00:00
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, pkg-config
, glib
, i2c-tools
, udev
, kmod
, libgudev
, libusb1
, libdrm
, xorg
}:
2017-06-14 16:56:35 +00:00
stdenv.mkDerivation rec {
pname = "ddcutil";
2022-02-10 12:13:03 +00:00
version = "1.2.2";
2017-06-14 16:56:35 +00:00
src = fetchFromGitHub {
2021-10-19 06:02:30 +00:00
owner = "rockowitz";
repo = "ddcutil";
rev = "v${version}";
2022-02-10 12:13:03 +00:00
sha256 = "0hbd2ybpqmm96icg387vr57dqkdbc20vyimqjq5yx0sdlp4ikzi7";
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;
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 ];
2017-06-14 16:56:35 +00:00
};
}