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