summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kmscube/default.nix
blob: 6c16803b5090bee25a01fe20468265d49b46b3f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchgit, autoreconfHook, libdrm, libX11, libGL, pkgconfig }:

stdenv.mkDerivation rec {
  name = "kmscube-2017-03-19";

  src = fetchgit {
    url = git://anongit.freedesktop.org/mesa/kmscube;
    rev = "b88a44d95eceaeebc5b9c6972ffcbfe9eca00aea";
    sha256 = "029ccslfavz6jllqv980sr6mj9bdbr0kx7bi21ra0q9yl2vh0yca";
  };

  nativeBuildInputs = [ autoreconfHook pkgconfig ];
  buildInputs = [ libdrm libX11 libGL ];

  meta = with stdenv.lib; {
    description = "Example OpenGL app using KMS/GBM";
    homepage = https://github.com/robclark/kmscube;
    license = licenses.mit;
    maintainers = with maintainers; [ dezgeg ];
    platforms = platforms.linux;
  };
}