p11-kit: fix tests when non-root

This commit is contained in:
Ryan Burns 2020-10-02 19:25:50 -07:00
parent 82a14b8569
commit 036ef044fd
1 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,13 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
# Tests run in fakeroot for non-root users
preCheck = ''
if [ "$(id -u)" != "0" ]; then
export FAKED_MODE=1
fi
'';
doCheck = !stdenv.isDarwin;
installFlags = [