zerotierone: enable package test (#82738)

This commit is contained in:
Daniel Fullmer 2020-03-16 15:43:35 -04:00 committed by GitHub
parent 70519e57af
commit d467d6ce4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,13 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
buildFlags = [ "all" "selftest" ];
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
checkPhase = ''
./zerotier-selftest
'';
installPhase = ''
install -Dt "$out/bin/" zerotier-one
ln -s $out/bin/zerotier-one $out/bin/zerotier-idtool