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

29 lines
760 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rustPlatform, openssl, pkg-config, ncurses }:
2019-02-02 09:50:15 +00:00
rustPlatform.buildRustPackage rec {
2020-09-05 17:48:17 +01:00
version = "0.5.1";
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}";
2020-09-05 17:48:17 +01:00
sha256 = "1s67drjzd4cf93hpm7b2facfd6y1x0s60aq6pygj7i02bm0cb9l9";
2019-02-02 09:50:15 +00:00
};
2020-09-05 17:48:17 +01:00
cargoSha256 = "1wd70y13lly7nccaqlv7w8znxfal0fzyf9d67y5c3aikj7hkzfin";
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
};
}