Merge pull request #113274 from danieldk/fend-install-check

fend: add install check
This commit is contained in:
Jörg Thalheim
2021-02-16 08:44:10 +00:00
committed by GitHub

View File

@@ -13,6 +13,12 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "sha256-e95DRhD22zvizUJOM2It45Bx05iK3KtaMgFPkMbR7iI=";
doInstallCheck = true;
installCheckPhase = ''
[[ "$($out/bin/fend "1 km to m")" = "1000 m" ]]
'';
meta = with lib; {
description = "Arbitrary-precision unit-aware calculator";
homepage = "https://github.com/printfn/fend";