2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, openssl, pkg-config, ncurses }:
|
2019-02-02 09:50:15 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2021-05-01 09:42:02 +01:00
|
|
|
version = "0.6.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}";
|
2021-05-01 09:42:02 +01:00
|
|
|
sha256 = "1h93xlavcjvx588q8wkpbzph88yjjhhvzcfxr5nicdca0jnha5ch";
|
2019-02-02 09:50:15 +00:00
|
|
|
};
|
|
|
|
|
2021-05-01 09:42:02 +01:00
|
|
|
cargoSha256 = "0x4rvfnw3gl2aj6i006nkk3y1f8skyv8g0ss3z2v6qj9nhs7pyir";
|
2020-02-14 02:00:26 +00:00
|
|
|
|
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;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
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";
|
2021-04-11 22:18:32 +01:00
|
|
|
license = with licenses; [ mpl20 gpl3Plus ];
|
2020-11-17 11:02:06 +00:00
|
|
|
maintainers = with maintainers; [ sb0 Br1ght0ne ];
|
2019-02-02 09:50:15 +00:00
|
|
|
};
|
|
|
|
}
|