1{ stdenv, fetchgit, autoreconfHook, libdrm, libX11, libGL, pkgconfig }:
2
3stdenv.mkDerivation rec {
4 name = "kmscube-2017-03-19";
5
6 src = fetchgit {
7 url = git://anongit.freedesktop.org/libGLU_combined/kmscube;
8 rev = "b88a44d95eceaeebc5b9c6972ffcbfe9eca00aea";
9 sha256 = "029ccslfavz6jllqv980sr6mj9bdbr0kx7bi21ra0q9yl2vh0yca";
10 };
11
12 nativeBuildInputs = [ autoreconfHook pkgconfig ];
13 buildInputs = [ libdrm libX11 libGL ];
14
15 meta = with stdenv.lib; {
16 description = "Example OpenGL app using KMS/GBM";
17 homepage = https://github.com/robclark/kmscube;
18 license = licenses.mit;
19 maintainers = with maintainers; [ dezgeg ];
20 platforms = platforms.linux;
21 };
22}