zfs: libtirpc dep on musl

This commit is contained in:
Will Dietz 2018-03-24 13:49:05 -05:00
parent 8349d73c8f
commit d6ffaac4ac

View File

@ -4,6 +4,7 @@
# Userspace dependencies # Userspace dependencies
, zlib, libuuid, python, attr, openssl , zlib, libuuid, python, attr, openssl
, libtirpc
# Kernel dependencies # Kernel dependencies
, kernel ? null, spl ? null, splUnstable ? null, splLegacyCrypto ? null , kernel ? null, spl ? null, splUnstable ? null, splLegacyCrypto ? null
@ -49,7 +50,8 @@ let
buildInputs = buildInputs =
optionals buildKernel [ spl ] optionals buildKernel [ spl ]
++ optionals buildUser [ zlib libuuid python attr ] ++ optionals buildUser [ zlib libuuid python attr ]
++ optionals (buildUser && (isUnstable || isLegacyCrypto)) [ openssl ]; ++ optionals (buildUser && (isUnstable || isLegacyCrypto)) [ openssl ]
++ optional stdenv.hostPlatform.isMusl [ libtirpc ];
# for zdb to get the rpath to libgcc_s, needed for pthread_cancel to work # for zdb to get the rpath to libgcc_s, needed for pthread_cancel to work
NIX_CFLAGS_LINK = "-lgcc_s"; NIX_CFLAGS_LINK = "-lgcc_s";