summary refs log tree commit diff
path: root/pkgs/development/libraries/kmsxx/default.nix
blob: 490732c38025a127f102d79012919f1d7bdbf4a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libdrm, python }:

stdenv.mkDerivation rec {
  name = "kmsxx-2017-10-10";

  src = fetchFromGitHub {
    owner = "tomba";
    repo = "kmsxx";
    fetchSubmodules = true;
    rev = "f32b82c17cd357ae1c8ed2636266113955293feb";
    sha256 = "14panqdqq83wh6wym5afdiyrr78mb12ga63pgrppj27kgv398yjj";
  };

  enableParallelBuilding = true;

  nativeBuildInputs = [ cmake pkgconfig ];
  buildInputs = [ libdrm python ];

  pythonPath = [ ];
  passthru.python = python;

  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 = with maintainers; [ gnidorah ];
    platforms = platforms.linux;
  };
}