1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 08:34:50 +00:00
nixpkgs/pkgs/applications/science/misc/rink/default.nix

29 lines
758 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rustPlatform, openssl, pkg-config, ncurses }:
2019-02-02 09:50:15 +00:00
rustPlatform.buildRustPackage rec {
2021-04-11 15:49:45 +01:00
version = "0.6.0";
2019-08-31 12:41:23 +01:00
pname = "rink";
2019-02-02 09:50:15 +00:00
src = fetchFromGitHub {
owner = "tiffany352";
repo = "rink-rs";
rev = "v${version}";
2021-04-11 15:49:45 +01:00
sha256 = "sha256-3uhKevuUVh7AObn2GDW2T+5wttX20SbVP+sFaFj3Jmk=";
2019-02-02 09:50:15 +00:00
};
2021-04-11 15:49:45 +01:00
cargoSha256 = "sha256-luJzIGdcitH+PNgr86AYX6wKEkQlsRhwwylo+hzeovE=";
2020-07-18 11:30:05 +01:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ncurses ];
2019-02-02 09:50:15 +00:00
# Some tests fail and/or attempt to use internet servers.
doCheck = false;
meta = with lib; {
2019-02-02 09:50:15 +00:00
description = "Unit-aware calculator";
2020-07-18 11:30:05 +01:00
homepage = "https://rinkcalc.app";
2019-02-02 09:50:15 +00:00
license = with licenses; [ mpl20 gpl3 ];
maintainers = with maintainers; [ sb0 Br1ght0ne ];
2019-02-02 09:50:15 +00:00
};
}