summary refs log blame commit diff
path: root/pkgs/os-specific/linux/kmscube/default.nix
blob: 12463c736a6296fff6abee0ad0aa58bf25263094 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                             
 
                     
                              
 
                  
                                                     

                                                                    


                                                   
                                             


                                                     
                                                           




                                               
{ stdenv, fetchgit, autoreconfHook, libdrm, libX11, libGL, mesa, pkgconfig }:

stdenv.mkDerivation {
  name = "kmscube-2018-06-17";

  src = fetchgit {
    url = git://anongit.freedesktop.org/mesa/kmscube;
    rev = "9dcce71e603616ee7a54707e932f962cdf8fb20a";
    sha256 = "1q5b5yvyfj3127385mp1bfmcbnpnbdswdk8gspp7g4541xk4k933";
  };

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

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