lvm2: fix static compilation

This should avoid a infinity recursion issue during static compilation,
by making util-linux not a dependency of the `fix-blkdeactivate.patch`.

+7 -6
+7 -6
pkgs/os-specific/linux/lvm2/common.nix
··· 4 , fetchpatch 5 , fetchurl 6 , pkg-config 7 - , util-linux 8 , coreutils 9 , libuuid 10 , libaio 11 , substituteAll 12 , enableCmdlib ? false 13 , enableDmeventd ? false 14 - , udevSupport ? !stdenv.hostPlatform.isStatic, udev ? null 15 , onlyLib ? stdenv.hostPlatform.isStatic 16 - , enableVDO ? false, vdo ? null 17 - , enableMdadm ? false, mdadm ? null 18 - , enableMultipath ? false, multipath-tools ? null 19 , nixosTests 20 }: 21 ··· 102 in { 103 src = ./fix-blkdeactivate.patch; 104 inherit coreutils; 105 - util_linux = util-linux; 106 mdadm = optionalTool enableMdadm mdadm; 107 multipath_tools = optionalTool enableMultipath multipath-tools; 108 vdo = optionalTool enableVDO vdo;
··· 4 , fetchpatch 5 , fetchurl 6 , pkg-config 7 , coreutils 8 , libuuid 9 , libaio 10 , substituteAll 11 , enableCmdlib ? false 12 , enableDmeventd ? false 13 + , udevSupport ? !stdenv.hostPlatform.isStatic, udev 14 , onlyLib ? stdenv.hostPlatform.isStatic 15 + # Otherwise we have a infinity recursion during static compilation 16 + , enableUtilLinux ? !stdenv.hostPlatform.isStatic, util-linux 17 + , enableVDO ? false, vdo 18 + , enableMdadm ? false, mdadm 19 + , enableMultipath ? false, multipath-tools 20 , nixosTests 21 }: 22 ··· 103 in { 104 src = ./fix-blkdeactivate.patch; 105 inherit coreutils; 106 + util_linux = optionalTool enableUtilLinux util-linux; 107 mdadm = optionalTool enableMdadm mdadm; 108 multipath_tools = optionalTool enableMultipath multipath-tools; 109 vdo = optionalTool enableVDO vdo;