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