Merge pull request #249014 from kashw2/leetcode-cli
leetcode-cli: 0.4.1 -> 0.4.2; added passthru test
This commit is contained in:
commit
968a26d7a9
|
@ -7,18 +7,20 @@
|
||||||
, sqlite
|
, sqlite
|
||||||
, stdenv
|
, stdenv
|
||||||
, darwin
|
, darwin
|
||||||
|
, testers
|
||||||
|
, leetcode-cli
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "leetcode-cli";
|
pname = "leetcode-cli";
|
||||||
version = "0.4.1";
|
version = "0.4.2";
|
||||||
|
|
||||||
src = fetchCrate {
|
src = fetchCrate {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-8v10Oe3J0S9xp4b2UDOnv+W0UDgveK+mAyV3I/zZUGw=";
|
sha256 = "sha256-Yr8Jsy8863O6saaFRAxssni+PtK7XYe+Iifgxu8Rx6Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-MdHk8i/murKcWi9gydyPyq/6r1SovKP04PMJyXXrCiQ=";
|
cargoHash = "sha256-rab/oLr27UOlnwUUB1RXC/egLoYyzmVtzN1L+AGed8o=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
|
@ -30,6 +32,12 @@ rustPlatform.buildRustPackage rec {
|
||||||
sqlite
|
sqlite
|
||||||
] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
] ++ 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; {
|
meta = with lib; {
|
||||||
description = "May the code be with you 👻";
|
description = "May the code be with you 👻";
|
||||||
longDescription = "Use leetcode.com in command line";
|
longDescription = "Use leetcode.com in command line";
|
||||||
|
|
Loading…
Reference in a new issue