10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
18 hash = "sha256-f2xmc6wzZ5MwwBDYQNoxbFmIclZWd/xOOI4/MCmrnEI=";
21 cargoHash = "sha256-OiAU94URgOHZ/iNbCF5rE55zfZNkW3bdjPZo05kpIRo=";
23 nativeBuildInputs = [ makeWrapper ];
25 wrapProgram $out/bin/mini-calc \
26 --prefix PATH : "${lib.makeBinPath [ gnuplot ]}"
29 passthru.tests.version = testers.testVersion {
31 # `mini-calc -v` does not output in the test env, fallback to pipe
32 command = "echo -v | mini-calc";
33 version = "v${version}";
37 description = "Fully-featured minimalistic configurable calculator written in Rust";
38 changelog = "https://github.com/coco33920/calc/blob/${version}/CHANGELOG.md";
39 homepage = "https://calc.nwa2coco.fr";
40 license = lib.licenses.gpl3Plus;
41 maintainers = with lib.maintainers; [ sigmanificient ];
42 mainProgram = "mini-calc";
43 platforms = lib.platforms.unix;