lgogdownloader: add installCheck

This commit is contained in:
0x4A6F 2021-08-27 01:37:58 +02:00
parent 212cfed17c
commit bb877fadee
No known key found for this signature in database
GPG key ID: 8DEDBA5BE07080E1

View file

@ -27,6 +27,16 @@ stdenv.mkDerivation rec {
buildInputs = [ boost curl htmlcxx jsoncpp liboauth rhash tinyxml-2 ];
doInstallCheck = true;
installCheckPhase = ''
if [[ "$("$out/bin/${pname}" --version)" == "LGOGDownloader ${version}" ]]; then
echo '${pname} smoke check passed'
else
echo '${pname} smoke check failed'
return 1
fi
'';
meta = with lib; {
description = "Unofficial downloader to GOG.com for Linux users. It uses the same API as the official GOGDownloader";
homepage = "https://github.com/Sude-/lgogdownloader";