parted: fix build without lvm

This commit is contained in:
Jan Tojnar 2018-06-21 23:07:06 +02:00
parent 6076953c2c
commit 10d0cc9a46
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -16,6 +16,11 @@ stdenv.mkDerivation rec {
(fetchpatch {
url = "https://git.alpinelinux.org/cgit/aports/plain/main/parted/fix-includes.patch?id=9c5cd3c329a40ba4559cc1d8c7d17a9bf95c237b";
sha256 = "117ypyiwvzym6pi8xmy16wa5z3sbpx7gh6haabs6kfb1x2894z7q";
})
++ stdenv.lib.optional (devicemapper == null)
(fetchpatch {
url = https://git.savannah.gnu.org/cgit/parted.git/patch/?id=7e87ca3c531228d35e13e802d2622006138b104c;
sha256 = "0i29lfg8cwj342q5s7qwqhncz2bkifj5rjc7cx6jd4zqb6ykkndj";
});
postPatch = stdenv.lib.optionalString doCheck ''