2021-01-25 09:26:54 +01:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, fetchpatch }:
|
2019-10-26 22:13:51 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "eva";
|
2019-12-05 14:41:01 +01:00
|
|
|
version = "0.2.7";
|
2019-10-26 22:13:51 +02:00
|
|
|
|
2021-05-07 13:00:49 +02:00
|
|
|
cargoSha256 = "08wm34rd03m5kd2zar23yhvi66kalzdqkgd6cqa1nq0ra4agnan7";
|
2019-10-26 22:13:51 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NerdyPepper";
|
2020-11-01 23:39:49 +01:00
|
|
|
repo = pname;
|
2019-12-05 14:41:01 +01:00
|
|
|
rev = "6ce0fc0212a34ffb647b24d9d903029ac4518165";
|
|
|
|
sha256 = "10242vnq2ph0g3p2hdacs4lmx3f474xm04nadplxbpv9xh4nbag3";
|
2019-10-26 22:13:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoPatches = [ ./Cargo.lock.patch ];
|
|
|
|
|
2019-12-05 14:41:01 +01:00
|
|
|
patches = [
|
|
|
|
# to fix the test suite (can be removed as soon as #33 is merged).
|
|
|
|
(fetchpatch {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://github.com/NerdyPepper/eva/commit/cacf51dbb9748b1dbe97b35f3c593a0a272bd4db.patch";
|
2019-12-05 14:41:01 +01:00
|
|
|
sha256 = "11q7dkz2x1888f3awnlr1nbbxzzfjrr46kd0kk6sgjdkyfh50cvv";
|
|
|
|
})
|
2020-08-29 12:29:48 +02: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 14:41:01 +01:00
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-10-26 22:13:51 +02:00
|
|
|
description = "A calculator REPL, similar to bc";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/NerdyPepper/eva";
|
2019-10-26 22:13:51 +02:00
|
|
|
license = licenses.mit;
|
2019-12-05 14:41:01 +01:00
|
|
|
maintainers = with maintainers; [ nrdxp ma27 ];
|
2019-10-26 22:13:51 +02:00
|
|
|
};
|
|
|
|
}
|