linuxPackages.zfs: use correct kernel module build flag

In this expression the boolean flags `buildUser` and `buildKernel` determine
if either userspace tools or the kernel module is being built.

cc #33166
This commit is contained in:
Franz Pletz 2017-12-29 22:46:34 +01:00
parent 84d8ef6e2f
commit 6b74d2ca07
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -39,7 +39,7 @@ let
patches = extraPatches;
nativeBuildInputs = [ autoreconfHook nukeReferences ]
++ optional (kernel != null) kernel.moduleBuildDependencies;
++ optional buildUser kernel.moduleBuildDependencies;
buildInputs =
optionals buildKernel [ spl ]
++ optionals buildUser [ zlib libuuid python attr ]