2021-01-23 04:26:19 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2020-04-05 04:49:56 -07:00
|
|
|
, libdrm, json_c, pciutils
|
2021-01-18 22:50:56 -08:00
|
|
|
, meson, ninja, pkg-config
|
2019-06-11 18:45:56 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "drm_info";
|
2021-03-17 18:09:31 -07:00
|
|
|
version = "2.3.0";
|
2019-06-11 18:45:56 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ascent12";
|
|
|
|
repo = "drm_info";
|
|
|
|
rev = "v${version}";
|
2021-03-17 18:09:31 -07:00
|
|
|
sha256 = "sha256-UTDYLe3QezPCyG9CIp+O+KX716JDTL9mn+OEjjyTwlg=";
|
2019-06-11 18:45:56 -07:00
|
|
|
};
|
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
2020-04-05 04:49:56 -07:00
|
|
|
buildInputs = [ libdrm json_c pciutils ];
|
2019-06-11 18:45:56 -07:00
|
|
|
|
2021-01-23 04:26:19 -08:00
|
|
|
meta = with lib; {
|
2020-10-10 22:55:05 -07:00
|
|
|
description = "Small utility to dump info about DRM devices";
|
2019-06-11 18:45:56 -07:00
|
|
|
homepage = "https://github.com/ascent12/drm_info";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tadeokondrak ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|