nixpkgs/pkgs/development/libraries/kmsxx/default.nix

29 lines
830 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, pkg-config, libdrm
2019-10-26 09:40:13 +00:00
, withPython ? false, python }:
2017-10-06 20:17:14 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "kmsxx";
2020-08-06 06:33:19 +00:00
version = "2020-08-04";
2017-10-06 20:17:14 +00:00
2017-10-12 15:01:37 +00:00
src = fetchFromGitHub {
owner = "tomba";
repo = "kmsxx";
2017-10-06 20:17:14 +00:00
fetchSubmodules = true;
2020-08-06 06:33:19 +00:00
rev = "38bee3092f2d477f1baebfcae464f888d3d04bbe";
sha256 = "0xz4m9bk0naawxwpx5cy1j3cm6c8c9m5y551csk88y88x1g0z0xh";
2017-10-06 20:17:14 +00:00
};
2019-10-26 09:40:13 +00:00
cmakeFlags = stdenv.lib.optional (!withPython) "-DKMSXX_ENABLE_PYTHON=OFF";
nativeBuildInputs = [ cmake pkg-config ];
2017-10-08 11:47:25 +00:00
buildInputs = [ libdrm python ];
2017-10-06 20:17:14 +00:00
meta = with stdenv.lib; {
description = "C++11 library, utilities and python bindings for Linux kernel mode setting";
homepage = "https://github.com/tomba/kmsxx";
2017-10-06 20:17:14 +00:00
license = licenses.mpl20;
2017-10-12 15:01:37 +00:00
maintainers = with maintainers; [ gnidorah ];
2017-10-06 20:17:14 +00:00
platforms = platforms.linux;
};
}