nixpkgs/pkgs/tools/misc/eva/default.nix

33 lines
964 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, rustPlatform, fetchpatch }:
2019-10-26 21:13:51 +01:00
rustPlatform.buildRustPackage rec {
pname = "eva";
version = "0.2.7";
2019-10-26 21:13:51 +01:00
cargoSha256 = "1lycjw5i169xx73qw8gknbakrxikdbr65fmqx7xq2mafc0hb1zyn";
2019-10-26 21:13:51 +01:00
src = fetchFromGitHub {
owner = "NerdyPepper";
repo = "${pname}";
rev = "6ce0fc0212a34ffb647b24d9d903029ac4518165";
sha256 = "10242vnq2ph0g3p2hdacs4lmx3f474xm04nadplxbpv9xh4nbag3";
2019-10-26 21:13:51 +01:00
};
cargoPatches = [ ./Cargo.lock.patch ];
patches = [
# to fix the test suite (can be removed as soon as #33 is merged).
(fetchpatch {
url = "https://github.com/NerdyPepper/eva/commit/cacf51dbb9748b1dbe97b35f3c593a0a272bd4db.patch";
sha256 = "11q7dkz2x1888f3awnlr1nbbxzzfjrr46kd0kk6sgjdkyfh50cvv";
})
];
2019-10-26 21:13:51 +01:00
meta = with stdenv.lib; {
description = "A calculator REPL, similar to bc";
homepage = "https://github.com/NerdyPepper/eva";
2019-10-26 21:13:51 +01:00
license = licenses.mit;
maintainers = with maintainers; [ nrdxp ma27 ];
2019-10-26 21:13:51 +01:00
};
}