libblockdev: add gptfdisk as a dependency

This fixes #62749 (sgdisk needed for creating luks-encrypted ext4
volumes via udisk2).
This commit is contained in:
Chris Rendle-Short
2019-06-06 14:45:13 +10:00
parent 8b3d0b00d5
commit c0f8a9f49d
2 changed files with 57 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, gtk-doc, libxslt, docbook_xsl
, docbook_xml_dtd_43, python3, gobject-introspection, glib, udev, kmod, parted, libyaml
{ stdenv, fetchFromGitHub, substituteAll, autoreconfHook, pkgconfig, gtk-doc, libxslt, docbook_xsl
, docbook_xml_dtd_43, python3, gobject-introspection, glib, udev, kmod, parted, gptfdisk, libyaml
, cryptsetup, lvm2, dmraid, utillinux, libbytesize, libndctl, nss, volume_key
}:
@@ -17,6 +17,13 @@ in stdenv.mkDerivation rec {
outputs = [ "out" "dev" "devdoc" ];
patches = [
(substituteAll {
src = ./fix-paths.patch;
sgdisk = "${gptfdisk}/bin/sgdisk";
})
];
postPatch = ''
patchShebangs scripts
'';
@@ -26,7 +33,7 @@ in stdenv.mkDerivation rec {
];
buildInputs = [
glib udev kmod parted cryptsetup lvm2 dmraid utillinux libbytesize libndctl nss volume_key libyaml
glib udev kmod parted gptfdisk cryptsetup lvm2 dmraid utillinux libbytesize libndctl nss volume_key libyaml
];
meta = with stdenv.lib; {