qemu: make ncurses optional for the test runner
This shaves another 3MB off the closure size of QEMU.
This commit is contained in:
parent
20893b3a70
commit
2451796b49
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, fetchurl, fetchpatch, python, zlib, pkgconfig, glib
|
{ stdenv, fetchurl, fetchpatch, python, zlib, pkgconfig, glib
|
||||||
, ncurses, perl, pixman, vde2, alsaLib, texinfo, flex
|
, perl, pixman, vde2, alsaLib, texinfo, flex
|
||||||
, bison, lzo, snappy, libaio, gnutls, nettle, curl
|
, bison, lzo, snappy, libaio, gnutls, nettle, curl
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, attr, libcap, libcap_ng
|
, attr, libcap, libcap_ng
|
||||||
|
@ -13,6 +13,7 @@
|
||||||
, vncSupport ? !nixosTestRunner, libjpeg, libpng
|
, vncSupport ? !nixosTestRunner, libjpeg, libpng
|
||||||
, smartcardSupport ? !nixosTestRunner, libcacard
|
, smartcardSupport ? !nixosTestRunner, libcacard
|
||||||
, spiceSupport ? !stdenv.isDarwin && !nixosTestRunner, spice, spice-protocol
|
, spiceSupport ? !stdenv.isDarwin && !nixosTestRunner, spice, spice-protocol
|
||||||
|
, ncursesSupport ? !nixosTestRunner, ncurses
|
||||||
, usbredirSupport ? spiceSupport, usbredir
|
, usbredirSupport ? spiceSupport, usbredir
|
||||||
, xenSupport ? false, xen
|
, xenSupport ? false, xen
|
||||||
, cephSupport ? false, ceph
|
, cephSupport ? false, ceph
|
||||||
|
@ -51,10 +52,11 @@ stdenv.mkDerivation rec {
|
||||||
nativeBuildInputs = [ python python.pkgs.sphinx pkgconfig flex bison ]
|
nativeBuildInputs = [ python python.pkgs.sphinx pkgconfig flex bison ]
|
||||||
++ optionals gtkSupport [ wrapGAppsHook ];
|
++ optionals gtkSupport [ wrapGAppsHook ];
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ zlib glib ncurses perl pixman
|
[ zlib glib perl pixman
|
||||||
vde2 texinfo makeWrapper lzo snappy
|
vde2 texinfo makeWrapper lzo snappy
|
||||||
gnutls nettle curl
|
gnutls nettle curl
|
||||||
]
|
]
|
||||||
|
++ optionals ncursesSupport [ ncurses ]
|
||||||
++ optionals stdenv.isDarwin [ CoreServices Cocoa Hypervisor rez setfile ]
|
++ optionals stdenv.isDarwin [ CoreServices Cocoa Hypervisor rez setfile ]
|
||||||
++ optionals seccompSupport [ libseccomp ]
|
++ optionals seccompSupport [ libseccomp ]
|
||||||
++ optionals numaSupport [ numactl ]
|
++ optionals numaSupport [ numactl ]
|
||||||
|
|
Loading…
Reference in a new issue