nixpkgs/pkgs/development/tools/drm_info/default.nix

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

28 lines
690 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
, libdrm, json_c, pciutils
, meson, ninja, pkg-config
2019-06-12 01:45:56 +00:00
}:
stdenv.mkDerivation rec {
pname = "drm_info";
2021-03-18 01:09:31 +00:00
version = "2.3.0";
2019-06-12 01:45:56 +00: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 01:45:56 +00:00
};
nativeBuildInputs = [ meson ninja pkg-config ];
buildInputs = [ libdrm json_c pciutils ];
2019-06-12 01:45:56 +00:00
meta = with lib; {
description = "Small utility to dump info about DRM devices";
2019-06-12 01:45:56 +00:00
homepage = "https://github.com/ascent12/drm_info";
license = licenses.mit;
maintainers = with maintainers; [ tadeokondrak ];
platforms = platforms.linux;
};
}