|
|
|
@ -4,18 +4,19 @@ |
|
|
|
|
, fetchpatch |
|
|
|
|
, fetchurl |
|
|
|
|
, pkg-config |
|
|
|
|
, util-linux |
|
|
|
|
, coreutils |
|
|
|
|
, libuuid |
|
|
|
|
, libaio |
|
|
|
|
, substituteAll |
|
|
|
|
, enableCmdlib ? false |
|
|
|
|
, enableDmeventd ? false |
|
|
|
|
, udevSupport ? !stdenv.hostPlatform.isStatic, udev ? null |
|
|
|
|
, udevSupport ? !stdenv.hostPlatform.isStatic, udev |
|
|
|
|
, onlyLib ? stdenv.hostPlatform.isStatic |
|
|
|
|
, enableVDO ? false, vdo ? null |
|
|
|
|
, enableMdadm ? false, mdadm ? null |
|
|
|
|
, enableMultipath ? false, multipath-tools ? null |
|
|
|
|
# Otherwise we have a infinity recursion during static compilation |
|
|
|
|
, enableUtilLinux ? !stdenv.hostPlatform.isStatic, util-linux |
|
|
|
|
, enableVDO ? false, vdo |
|
|
|
|
, enableMdadm ? false, mdadm |
|
|
|
|
, enableMultipath ? false, multipath-tools |
|
|
|
|
, nixosTests |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
@ -102,7 +103,7 @@ stdenv.mkDerivation rec { |
|
|
|
|
in { |
|
|
|
|
src = ./fix-blkdeactivate.patch; |
|
|
|
|
inherit coreutils; |
|
|
|
|
util_linux = util-linux; |
|
|
|
|
util_linux = optionalTool enableUtilLinux util-linux; |
|
|
|
|
mdadm = optionalTool enableMdadm mdadm; |
|
|
|
|
multipath_tools = optionalTool enableMultipath multipath-tools; |
|
|
|
|
vdo = optionalTool enableVDO vdo; |
|
|
|
|