2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libdrm
|
2021-04-05 15:23:46 +00:00
|
|
|
, withPython ? false, python ? null }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "kmsxx";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "2020-08-04";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tomba";
|
|
|
|
repo = "kmsxx";
|
|
|
|
fetchSubmodules = true;
|
2020-08-20 17:08:02 +00:00
|
|
|
rev = "38bee3092f2d477f1baebfcae464f888d3d04bbe";
|
|
|
|
sha256 = "0xz4m9bk0naawxwpx5cy1j3cm6c8c9m5y551csk88y88x1g0z0xh";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
cmakeFlags = lib.optional (!withPython) "-DKMSXX_ENABLE_PYTHON=OFF";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2021-04-05 15:23:46 +00:00
|
|
|
buildInputs = [ libdrm ] ++ lib.optionals withPython [ python ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "C++11 library, utilities and python bindings for Linux kernel mode setting";
|
|
|
|
homepage = "https://github.com/tomba/kmsxx";
|
|
|
|
license = licenses.mpl20;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2021-04-05 15:23:46 +00:00
|
|
|
broken = true; # marked broken 2021-03-26
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|