10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
18 hash = "sha256-5XsrOAvBrmCG6k7YRwGZZtBP/o1jVVtBBTrwIT5CDX8=";
21 cargoHash = "sha256-RMON7JThY6Ad1QHQFiNbTb2PUsfviR2t+55k1ZtlOd8=";
23 env.NUMBAT_SYSTEM_MODULE_PATH = "${placeholder "out"}/share/numbat/modules";
26 mkdir -p $out/share/numbat
27 cp -r $src/numbat/modules $out/share/numbat/
31 # The datetime library used by Numbat, "jiff", always attempts to use the
32 # system TZDIR on Unix and doesn't fall back to the embedded tzdb when not
34 export TZDIR=${tzdata}/share/zoneinfo
37 nativeInstallCheckInputs = [ versionCheckHook ];
38 doInstallCheck = true;
39 versionCheckProgramArg = [ "--version" ];
41 passthru.updateScript = nix-update-script { };
44 description = "High precision scientific calculator with full support for physical units";
46 A statically typed programming language for scientific computations
47 with first class support for physical dimensions and units
49 homepage = "https://numbat.dev";
50 changelog = "https://github.com/sharkdp/numbat/releases/tag/v${version}";
51 license = with lib.licenses; [
55 maintainers = with lib.maintainers; [
59 mainProgram = "numbat";