about summary refs log tree commit diff
path: root/pkgs/by-name/nu
diff options
context:
space:
mode:
authorGuillaume Fournier <>2023-10-29 23:11:43 +0100
committerGuillaume Fournier <>2023-10-30 21:25:31 +0100
commitd074b63cb017fd6175d535af2569db6153808e6a (patch)
tree8239ce8500d3f5c557cac41fb7c93ba14272eda5 /pkgs/by-name/nu
parentab20fb6a905db61ea4085a1502e83055ff9ff577 (diff)
numbat: init at 1.6.3
Diffstat (limited to 'pkgs/by-name/nu')
-rw-r--r--pkgs/by-name/nu/numbat/package.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/by-name/nu/numbat/package.nix b/pkgs/by-name/nu/numbat/package.nix
new file mode 100644
index 0000000000000..d5375b1ed4343
--- /dev/null
+++ b/pkgs/by-name/nu/numbat/package.nix
@@ -0,0 +1,31 @@
+{ lib
+, fetchFromGitHub
+, rustPlatform
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "numbat";
+  version = "1.6.3";
+
+  src = fetchFromGitHub {
+    owner = "sharkdp";
+    repo = "numbat";
+    rev = "v${version}";
+    hash = "sha256-r6uPe2NL+6r/fKjf0C/5DLdB5YP3SIo8g8EsDxKP/3g=";
+  };
+
+  cargoHash = "sha256-MPqJjCfIwgK8QigWQYfWAYlg9RNMzF4x+0SprS0raKY=";
+
+  meta = with lib; {
+    description = "High precision scientific calculator with full support for physical units";
+    longDescription = ''
+      A statically typed programming language for scientific computations
+      with first class support for physical dimensions and units
+    '';
+    homepage = "https://numbat.dev";
+    changelog = "https://github.com/sharkdp/numbat/releases/tag/v${version}";
+    license = with licenses; [ asl20 mit ];
+    mainProgram = "numbat";
+    maintainers = with maintainers; [ giomf ];
+  };
+}