3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/kmsxx/default.nix
2017-10-12 17:59:12 +03:00

28 lines
902 B
Nix

{ stdenv, fetchgit, cmake, pkgconfig, libdrm, pythonBindings ? null }:
stdenv.mkDerivation rec {
name = "kmsxx-2017-10-03";
src = fetchgit {
url = "https://github.com/tomba/kmsxx";
fetchSubmodules = true;
rev = "35d54fdddd6d7add49efbb0d9dec30816de96c90";
sha256 = "144gjqz6bxsn4j7k8q8309ph9czmr8rd4vzwfayw3airplnz5zka";
};
enableParallelBuilding = true;
cmakeFlags = stdenv.lib.optionalString (pythonBindings == null) [ "-DKMSXX_ENABLE_PYTHON=OFF" ];
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ libdrm ] ++ stdenv.lib.optional (pythonBindings != null) pythonBindings;
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;
maintainers = [ maintainers.gnidorah ];
platforms = platforms.linux;
};
}