10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
18 hash = "sha256-MYoNziQiyppftLPNM8cqEuNwUA4KCmtotQqDhgyef1E=";
21 cargoHash = "sha256-t6vxJ0UIQJILCGv4PO5V4/QF5de/wtMQDkb8gPtE70E=";
23 buildInputs = lib.optionals stdenv.isDarwin [
24 darwin.apple_sdk.frameworks.Security
27 env.NUMBAT_SYSTEM_MODULE_PATH = "${placeholder "out"}/share/${pname}/modules";
30 mkdir -p $out/share/${pname}
31 cp -r $src/${pname}/modules $out/share/${pname}/
34 passthru.tests.version = testers.testVersion {
39 description = "High precision scientific calculator with full support for physical units";
41 A statically typed programming language for scientific computations
42 with first class support for physical dimensions and units
44 homepage = "https://numbat.dev";
45 changelog = "https://github.com/sharkdp/numbat/releases/tag/v${version}";
46 license = with licenses; [ asl20 mit ];
47 mainProgram = "numbat";
48 maintainers = with maintainers; [ giomf atemu ];