@@ -0,0 +1,29 @@
1+{ stdenv, fetchFromGitHub, cmake, pkgconfig, libdrm, python }:
2+
3+stdenv.mkDerivation rec {
4+ name = "kmsxx-2017-10-10";
5+
6+ src = fetchFromGitHub {
7+ owner = "tomba";
8+ repo = "kmsxx";
9+ fetchSubmodules = true;
10+ rev = "f32b82c17cd357ae1c8ed2636266113955293feb";
11+ sha256 = "14panqdqq83wh6wym5afdiyrr78mb12ga63pgrppj27kgv398yjj";
12+ };
13+
14+ enableParallelBuilding = true;
15+
16+ nativeBuildInputs = [ cmake pkgconfig ];
17+ buildInputs = [ libdrm python ];
18+
19+ pythonPath = [ ];
20+ passthru.python = python;
21+
22+ meta = with stdenv.lib; {
23+ description = "C++11 library, utilities and python bindings for Linux kernel mode setting";
24+ homepage = https://github.com/tomba/kmsxx;
25+ license = licenses.mpl20;
26+ maintainers = with maintainers; [ gnidorah ];
27+ platforms = platforms.linux;
28+ };
29+}