2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libdrm
|
2021-03-26 09:29:31 +00:00
|
|
|
, withPython ? false, python ? null }:
|
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";
|
2020-08-06 07:33:19 +01:00
|
|
|
version = "2020-08-04";
|
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;
|
2020-08-06 07:33:19 +01:00
|
|
|
rev = "38bee3092f2d477f1baebfcae464f888d3d04bbe";
|
|
|
|
sha256 = "0xz4m9bk0naawxwpx5cy1j3cm6c8c9m5y551csk88y88x1g0z0xh";
|
2017-10-06 21:17:14 +01:00
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
cmakeFlags = lib.optional (!withPython) "-DKMSXX_ENABLE_PYTHON=OFF";
|
2019-10-26 10:40:13 +01:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2021-03-26 09:31:12 +00:00
|
|
|
buildInputs = [ libdrm ] ++ lib.optionals withPython [ python ];
|
2017-10-08 12:47:25 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-10-06 21:17:14 +01:00
|
|
|
description = "C++11 library, utilities and python bindings for Linux kernel mode setting";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/tomba/kmsxx";
|
2017-10-06 21:17:14 +01:00
|
|
|
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;
|
2021-03-26 09:31:12 +00:00
|
|
|
broken = true; # marked broken 2021-03-26
|
2017-10-06 21:17:14 +01:00
|
|
|
};
|
|
|
|
}
|