2021-10-08 01:31:36 +03:00
|
|
|
{ lib, rustPlatform, fetchCrate, fetchpatch }:
|
2019-10-26 23:13:51 +03:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "eva";
|
2019-12-05 16:41:01 +03:00
|
|
|
version = "0.2.7";
|
2019-10-26 23:13:51 +03:00
|
|
|
|
2021-10-08 01:31:36 +03:00
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "sha256-4rmFvu6G4h8Pl592NlldSCkqZBbnTcXrs98ljIJmTXo=";
|
2019-10-26 23:13:51 +03:00
|
|
|
};
|
|
|
|
|
2021-10-08 01:31:36 +03:00
|
|
|
cargoSha256 = "sha256-BG/W8lG/47kyA7assS6efEO+DRkpSFcZQhlSIozlonA=";
|
2019-10-26 23:13:51 +03:00
|
|
|
|
2019-12-05 16:41:01 +03:00
|
|
|
patches = [
|
|
|
|
# to fix the test suite (can be removed as soon as #33 is merged).
|
|
|
|
(fetchpatch {
|
2020-04-01 04:11:51 +03:00
|
|
|
url = "https://github.com/NerdyPepper/eva/commit/cacf51dbb9748b1dbe97b35f3c593a0a272bd4db.patch";
|
2019-12-05 16:41:01 +03:00
|
|
|
sha256 = "11q7dkz2x1888f3awnlr1nbbxzzfjrr46kd0kk6sgjdkyfh50cvv";
|
|
|
|
})
|
2020-08-29 13:29:48 +03:00
|
|
|
|
|
|
|
# to fix `cargo test -- --test-threads $NIX_BUILD_CORES`
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/NerdyPepper/eva/commit/ccfb3d327567dbaf03b2283c7e684477e2e84590.patch";
|
|
|
|
sha256 = "003yxqlyi8jna0rf05q2a006r2pkz6pcwwfl3dv8zb6p83kk1kgj";
|
|
|
|
})
|
2019-12-05 16:41:01 +03:00
|
|
|
];
|
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2019-10-26 23:13:51 +03:00
|
|
|
description = "A calculator REPL, similar to bc";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/NerdyPepper/eva";
|
2019-10-26 23:13:51 +03:00
|
|
|
license = licenses.mit;
|
2019-12-05 16:41:01 +03:00
|
|
|
maintainers = with maintainers; [ nrdxp ma27 ];
|
2019-10-26 23:13:51 +03:00
|
|
|
};
|
|
|
|
}
|