3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/xf86-video-nested/default.nix
Franz Pletz aff1f4ab94 Use general hardening flag toggle lists
The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
2016-03-05 18:55:26 +01:00

30 lines
895 B
Nix

{ stdenv, fetchgit, autoreconfHook, fontsproto, libX11, libXext
, pixman, pkgconfig, renderproto, utilmacros, xorgserver
}:
stdenv.mkDerivation {
name = "xf86-video-nested-2012-06-15";
src = fetchgit {
url = git://anongit.freedesktop.org/xorg/driver/xf86-video-nested;
rev = "ad48dc6eb98776a8a886f26f31c0110352fa1da4";
sha256 = "43a102405acdcdb346ab197b33c8fa724d2140f33754f8ee3941a0eea152735c";
};
buildInputs =
[ autoreconfHook fontsproto libX11 libXext pixman
pkgconfig renderproto utilmacros xorgserver
];
hardeningDisable = [ "fortify" ];
CFLAGS = "-I${pixman}/include/pixman-1";
meta = {
homepage = http://cgit.freedesktop.org/xorg/driver/xf86-video-nested;
description = "A driver to run Xorg on top of Xorg or something else";
maintainers = [ stdenv.lib.maintainers.goibhniu ];
platforms = stdenv.lib.platforms.linux;
};
}