added passthru version test

This commit is contained in:
kashw2 2023-08-14 12:50:54 +10:00
parent 73743d45e0
commit e2f4aedc42

View File

@ -32,6 +32,12 @@ rustPlatform.buildRustPackage rec {
sqlite
] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
passthru.tests = testers.testVersion {
package = leetcode-cli;
command = "leetcode -V";
version = "leetcode ${version}";
};
meta = with lib; {
description = "May the code be with you 👻";
longDescription = "Use leetcode.com in command line";