about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/xf86-video-nested/default.nix
blob: bfc4a68bddf8779a52e0b2351da22a1f3ca2bdd4 (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
30
31
32
33
{ lib, stdenv, fetchgit, autoreconfHook, xorgproto, libX11, libXext
, pixman, pkg-config, utilmacros, xorgserver
}:

stdenv.mkDerivation {
  pname = "xf86-video-nested";
  version = "unstable-2017-06-12";

  src = fetchgit {
    url = "git://anongit.freedesktop.org/xorg/driver/xf86-video-nested";
    rev = "6a48b385c41ea89354d0b2ee7f4649a1d1d9ec70";
    sha256 = "133rd2kvr2q2wmwpx82bb93qbi8wm8qp1vlmbhgc7aslz0j4cqqv";
  };

  nativeBuildInputs = [ pkg-config autoreconfHook ];

  buildInputs =
    [ xorgproto libX11 libXext pixman
      utilmacros xorgserver
    ];

  hardeningDisable = [ "fortify" ];

  CFLAGS = "-I${pixman}/include/pixman-1";

  meta = with lib; {
    homepage = "https://cgit.freedesktop.org/xorg/driver/xf86-video-nested";
    description = "Driver to run Xorg on top of Xorg or something else";
    maintainers = [ maintainers.goibhniu ];
    platforms = platforms.linux;
    license = licenses.mit;
  };
}