2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib, i2c-tools, udev, libgudev, libusb1, libdrm, xorg }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ddcutil";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "1.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rockowitz";
|
|
|
|
repo = "ddcutil";
|
|
|
|
rev = "v${version}";
|
2021-02-13 14:23:35 +00:00
|
|
|
sha256 = "sha256-F/tKW81bAyYtwpxhl5XC8YyMB+6S0XmqqigwJY2WFDU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
patches = [
|
|
|
|
# Look for kernel modules in /run/booted-system/kernel-modules/lib/modules/*
|
|
|
|
./nixos-paths.diff
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
i2c-tools udev libgudev
|
|
|
|
glib libusb1 libdrm xorg.libXrandr
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.ddcutil.com/";
|
|
|
|
description = "Query and change Linux monitor settings using DDC/CI and USB";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|