|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
{ stdenv, fetchurl, fetchgit, autogen, flex, bison, python, autoconf, automake |
|
|
|
|
, gettext, ncurses, libusb, freetype, qemu, devicemapper |
|
|
|
|
, linuxPackages ? null |
|
|
|
|
, zfs ? null |
|
|
|
|
, efiSupport ? false |
|
|
|
|
, zfsSupport ? false |
|
|
|
|
}: |
|
|
|
@ -32,7 +32,7 @@ let |
|
|
|
|
in ( |
|
|
|
|
|
|
|
|
|
assert efiSupport -> canEfi; |
|
|
|
|
assert zfsSupport -> linuxPackages != null && linuxPackages.zfs != null; |
|
|
|
|
assert zfsSupport -> zfs != null; |
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec { |
|
|
|
|
name = "${prefix}-${version}"; |
|
|
|
@ -46,7 +46,7 @@ stdenv.mkDerivation rec { |
|
|
|
|
nativeBuildInputs = [ autogen flex bison python autoconf automake ]; |
|
|
|
|
buildInputs = [ ncurses libusb freetype gettext devicemapper ] |
|
|
|
|
++ optional doCheck qemu |
|
|
|
|
++ optional zfsSupport linuxPackages.zfs; |
|
|
|
|
++ optional zfsSupport zfs; |
|
|
|
|
|
|
|
|
|
preConfigure = |
|
|
|
|
'' for i in "tests/util/"*.in |
|
|
|
|