2017-10-12 18:01:37 +03:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libdrm, python }:
|
2017-10-06 23:17:14 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-11-09 14:26:09 +03:00
|
|
|
pname = "kmsxx";
|
2018-09-14 21:18:14 +03:00
|
|
|
version = "2018-09-10";
|
2017-11-09 14:26:09 +03:00
|
|
|
name = pname + "-" + version;
|
2017-10-06 23:17:14 +03:00
|
|
|
|
2017-10-12 18:01:37 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomba";
|
|
|
|
repo = "kmsxx";
|
2017-10-06 23:17:14 +03:00
|
|
|
fetchSubmodules = true;
|
2018-09-14 21:18:14 +03:00
|
|
|
rev = "524176c33ee2b79f78d454fa621e0d32e7e72488";
|
|
|
|
sha256 = "0wyg0zv207h5a78cwmbg6fi8gr8blbbkwngjq8hayfbg45ww0jy8";
|
2017-10-06 23:17:14 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2017-10-08 14:47:25 +03:00
|
|
|
buildInputs = [ libdrm python ];
|
|
|
|
|
|
|
|
pythonPath = [ ];
|
|
|
|
passthru.python = python;
|
2017-10-06 23:17:14 +03:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "C++11 library, utilities and python bindings for Linux kernel mode setting";
|
|
|
|
homepage = https://github.com/tomba/kmsxx;
|
|
|
|
license = licenses.mpl20;
|
2017-10-12 18:01:37 +03:00
|
|
|
maintainers = with maintainers; [ gnidorah ];
|
2017-10-06 23:17:14 +03:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|