10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
15 owner = "vanilla-extracts";
18 hash = "sha256-JAIqigELPu4ZCj1uDgGNSCIqVhJVH7tZwFiI/PSTjSI=";
21 cargoHash = "sha256-s35rR0nb5uX9J3rvEs15+FYBfhXycZwL90yeQf0esJA=";
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.charlotte-thomas.me/";
40 license = lib.licenses.gpl3Plus;
41 maintainers = with lib.maintainers; [ sigmanificient ];
42 mainProgram = "mini-calc";
43 platforms = lib.platforms.unix;