mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
Merge #99437: p11-kit: fix tests when non-root
This commit is contained in:
commit
f42d36d588
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user