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

32 lines
845 B
Nix
Raw Normal View History

2017-10-12 16:01:37 +01:00
{ stdenv, fetchFromGitHub, cmake, pkgconfig, libdrm, python }:
2017-10-06 21:17:14 +01:00
stdenv.mkDerivation rec {
pname = "kmsxx";
version = "2017-10-10";
name = pname + "-" + version;
2017-10-06 21:17:14 +01:00
2017-10-12 16:01:37 +01:00
src = fetchFromGitHub {
owner = "tomba";
repo = "kmsxx";
2017-10-06 21:17:14 +01:00
fetchSubmodules = true;
2017-10-12 16:01:37 +01:00
rev = "f32b82c17cd357ae1c8ed2636266113955293feb";
sha256 = "14panqdqq83wh6wym5afdiyrr78mb12ga63pgrppj27kgv398yjj";
2017-10-06 21:17:14 +01:00
};
enableParallelBuilding = true;
nativeBuildInputs = [ cmake pkgconfig ];
2017-10-08 12:47:25 +01:00
buildInputs = [ libdrm python ];
pythonPath = [ ];
passthru.python = python;
2017-10-06 21:17:14 +01:00
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;
2017-10-12 16:01:37 +01:00
maintainers = with maintainers; [ gnidorah ];
2017-10-06 21:17:14 +01:00
platforms = platforms.linux;
};
}