Merge pull request #113274 from danieldk/fend-install-check
fend: add install check
This commit is contained in:
commit
ecc19c0b99
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user