1{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libdrm, libva }:
2
3stdenv.mkDerivation rec {
4 pname = "cmrt";
5 version = "1.0.6";
6
7 src = fetchFromGitHub {
8 owner = "intel";
9 repo = "cmrt";
10 rev = version;
11 sha256 = "sha256-W6MQI41J9CKeM1eILCkvmW34cbCC8YeEF2mE+Ci8o7s=";
12 };
13
14 nativeBuildInputs = [ autoreconfHook pkg-config ];
15
16 buildInputs = [ libdrm libva ];
17
18 meta = with lib; {
19 broken = (stdenv.isLinux && stdenv.isAarch64);
20 homepage = "https://01.org/linuxmedia";
21 description = "Intel C for Media Runtime";
22 longDescription = "Media GPU kernel manager for Intel G45 & HD Graphics family";
23 license = licenses.mit;
24 maintainers = with maintainers; [ tadfisher ];
25 platforms = platforms.linux;
26 };
27}