kmsxx, pykms: suggestions by @FRidh
This commit is contained in:
parent
86ebd2e684
commit
cf4a2bb111
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchgit, cmake, pkgconfig, libdrm, pythonBindings ? null }:
|
{ stdenv, fetchgit, cmake, pkgconfig, libdrm, python }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "kmsxx-2017-10-03";
|
name = "kmsxx-2017-10-03";
|
||||||
@ -12,10 +12,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
cmakeFlags = stdenv.lib.optionalString (pythonBindings == null) [ "-DKMSXX_ENABLE_PYTHON=OFF" ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig ];
|
nativeBuildInputs = [ cmake pkgconfig ];
|
||||||
buildInputs = [ libdrm ] ++ stdenv.lib.optional (pythonBindings != null) pythonBindings;
|
buildInputs = [ libdrm python ];
|
||||||
|
|
||||||
|
pythonPath = [ ];
|
||||||
|
passthru.python = python;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "C++11 library, utilities and python bindings for Linux kernel mode setting";
|
description = "C++11 library, utilities and python bindings for Linux kernel mode setting";
|
||||||
|
@ -15604,9 +15604,7 @@ in {
|
|||||||
pika-pool = callPackage ../development/python-modules/pika-pool { };
|
pika-pool = callPackage ../development/python-modules/pika-pool { };
|
||||||
platformio = callPackage ../development/python-modules/platformio { };
|
platformio = callPackage ../development/python-modules/platformio { };
|
||||||
|
|
||||||
pykms = callPackage ../development/libraries/kmsxx {
|
pykms = callPackage ../development/libraries/kmsxx { };
|
||||||
pythonBindings = python;
|
|
||||||
};
|
|
||||||
|
|
||||||
pylibconfig2 = buildPythonPackage rec {
|
pylibconfig2 = buildPythonPackage rec {
|
||||||
name = "pylibconfig2-${version}";
|
name = "pylibconfig2-${version}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user