2020-07-18 16:06:22 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, openssl, pkg-config, ncurses }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "0.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "rink";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tiffany352";
|
|
|
|
repo = "rink-rs";
|
|
|
|
rev = "v${version}";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "1z51n25hmgqkn4bm9yj18j8p4pk5i1x3f3z70vl1vx3v109jhff0";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
cargoSha256 = "0p63py8q4iqj5rrsir9saj7dvkrafx63z493k7p5xb2mah7b21lb";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ openssl ncurses ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Some tests fail and/or attempt to use internet servers.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Unit-aware calculator";
|
2020-07-18 16:06:22 +00:00
|
|
|
homepage = "https://rinkcalc.app";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; [ mpl20 gpl3 ];
|
|
|
|
maintainers = with maintainers; [ sb0 filalex77 ];
|
|
|
|
};
|
|
|
|
}
|