package libdrm {
	description = "a userspace library for accessing the DRM";
	website = "https://dri.freedesktop.org";
	anitya = 1596;

	version# = "2.4.134";
	source = remoteGitLab {
		domain = "gitlab.freedesktop.org";
		suffix = "mesa/libdrm";
		ref = "libdrm-"+version;
		checksum = "L81a0vjK3RBWDwLHPkyTvy-us37ICD_hD2GcIb5s8Lx_OhVWxqdElzeMCgzQ4yiK";
	};

	exec = meson {
		setup = {
			"intel": "enabled";
		};
	};

	inputs = [
		// symbols check fail with llvm nm
		binutils,

		libpciaccess,
		kernel-headers,
	];

	runtime = [ libpciaccess ];
}
