mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
grub2: compile grub-mount as well
It is a dependency of os-prober >= 1.75 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860833#23
This commit is contained in:
parent
5da85431fb
commit
3e09239882
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
{ stdenv, fetchurl, fetchFromSavannah, autogen, flex, bison, python, autoconf, automake
|
||||
, gettext, ncurses, libusb, freetype, qemu, devicemapper, unifont, pkgconfig
|
||||
, fuse # only needed for grub-mount
|
||||
, zfs ? null
|
||||
, efiSupport ? false
|
||||
, zfsSupport ? true
|
||||
|
@ -47,7 +48,7 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
nativeBuildInputs = [ bison flex python pkgconfig ];
|
||||
buildInputs = [ ncurses libusb freetype gettext devicemapper ]
|
||||
buildInputs = [ ncurses libusb freetype gettext devicemapper fuse ]
|
||||
++ optional doCheck qemu
|
||||
++ optional zfsSupport zfs;
|
||||
|
||||
|
@ -83,7 +84,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
patches = [ ./fix-bash-completion.patch ];
|
||||
|
||||
configureFlags = optional zfsSupport "--enable-libzfs"
|
||||
configureFlags = [ "--enable-grub-mount" ] # dep of os-prober
|
||||
++ optional zfsSupport "--enable-libzfs"
|
||||
++ optionals efiSupport [ "--with-platform=efi" "--target=${efiSystemsBuild.${stdenv.system}.target}" "--program-prefix=" ]
|
||||
++ optionals xenSupport [ "--with-platform=xen" "--target=${efiSystemsBuild.${stdenv.system}.target}"];
|
||||
|
||||
|
|
Loading…
Reference in a new issue