mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 20:49:52 +03:00
lgogdownloader: add installCheck
This commit is contained in:
parent
212cfed17c
commit
bb877fadee
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user