mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
52 lines
932 B
Nix
52 lines
932 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, autoreconfHook
|
|
, pkg-config
|
|
, glib
|
|
, i2c-tools
|
|
, udev
|
|
, kmod
|
|
, libgudev
|
|
, libusb1
|
|
, libdrm
|
|
, xorg
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ddcutil";
|
|
version = "1.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rockowitz";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-y3mubdInYa4gpxhdw2JcRhnhd12O7jNq/oF3qoP82LU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
|
|
buildInputs = [
|
|
glib
|
|
i2c-tools
|
|
kmod
|
|
libdrm
|
|
libgudev
|
|
libusb1
|
|
udev
|
|
xorg.libXrandr
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
changelog = "https://github.com/rockowitz/ddcutil/blob/v${version}/CHANGELOG.md";
|
|
};
|
|
}
|
|
|