Skip to content

Commit

Permalink
Merge pull request #264241 from giomf/numbat-init
Browse files Browse the repository at this point in the history
numbat: init at 1.6.3
  • Loading branch information
natsukium authored Nov 2, 2023
2 parents c657656 + 53da5fe commit dd4cf78
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6493,6 +6493,12 @@
githubId = 1713676;
name = "Luis G. Torres";
};
giomf = {
email = "giomf@mailbox.org";
github = "giomf";
githubId = 35076723;
name = "Guillaume Fournier";
};
giorgiga = {
email = "giorgio.gallo@bitnic.it";
github = "giorgiga";
Expand Down
37 changes: 37 additions & 0 deletions pkgs/by-name/nu/numbat/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
}:

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=";

buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];

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 ];
};
}

0 comments on commit dd4cf78

Please sign in to comment.