2019-10-26 10:40:13 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libdrm
|
|
|
|
, withPython ? false, python }:
|
2017-10-06 21:17:14 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "kmsxx";
|
2019-10-26 10:40:13 +01:00
|
|
|
version = "2019-10-28";
|
2017-10-06 21:17:14 +01:00
|
|
|
|
2017-10-12 16:01:37 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomba";
|
|
|
|
repo = "kmsxx";
|
2017-10-06 21:17:14 +01:00
|
|
|
fetchSubmodules = true;
|
2019-10-26 10:40:13 +01:00
|
|
|
rev = "d29da28c7f2a0212d834136fe64fb8ca96a0a235";
|
|
|
|
sha256 = "0r94qjyy3s36s32s1xkzij0g2pfwigmyrshw8ni2xli7mg87g1zm";
|
2017-10-06 21:17:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-10-26 10:40:13 +01:00
|
|
|
cmakeFlags = stdenv.lib.optional (!withPython) "-DKMSXX_ENABLE_PYTHON=OFF";
|
|
|
|
|
2017-10-06 21:17:14 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2017-10-08 12:47:25 +01:00
|
|
|
buildInputs = [ libdrm python ];
|
|
|
|
|
2017-10-06 21:17:14 +01: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 16:01:37 +01:00
|
|
|
maintainers = with maintainers; [ gnidorah ];
|
2017-10-06 21:17:14 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|