shadow: only use tcb where available

Fixes pkgsMusl.shadow.

Fixes: 0e32191623 ("shadow: add tcb support")
This commit is contained in:
Alyssa Ross 2023-01-11 04:35:24 +00:00
parent c70e91bcc7
commit 0debb0b193

View File

@ -6,7 +6,7 @@
, libxcrypt
, glibcCross ? null
, pam ? null
, withTcb ? stdenv.isLinux, tcb
, withTcb ? lib.meta.availableOn stdenv.hostPlatform tcb, tcb
}:
let
glibc =