lvm2: move fix-blkdeactivate.patch to version 2.03.15+ only

This commit is contained in:
Thiago Kenji Okada 2022-04-23 14:46:40 +01:00
parent 67ae929deb
commit c9de099fa1

View file

@ -96,8 +96,9 @@ stdenv.mkDerivation rec {
sed -i 's|^#define LVM_CONFIGURE_LINE.*$|#define LVM_CONFIGURE_LINE "<removed>"|g' ./include/configure.h
'';
patches = [
patches = lib.optionals (lib.versionAtLeast version "2.03.15") [
# fixes paths to and checks for tools
# TODO: needs backport to LVM 2.02 used by static/musl
(substituteAll (let
optionalTool = cond: pkg: if cond then pkg else "/run/current-system/sw";
in {