2019-02-02 10:50:15 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, openssl, pkgconfig, gmp, ncurses }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2020-01-06 11:39:32 +01:00
|
|
|
version = "0.4.5";
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "rink";
|
2019-02-02 10:50:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tiffany352";
|
|
|
|
repo = "rink-rs";
|
|
|
|
rev = "v${version}";
|
2020-01-06 11:39:32 +01:00
|
|
|
sha256 = "0vl996y58a9b62d8sqrpfn2h8qkya7qbg5zqsmy7nxhph1vhbspj";
|
2019-02-02 10:50:15 +01:00
|
|
|
};
|
|
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
|
|
|
|
2020-02-14 03:00:26 +01:00
|
|
|
# Delete this on next update; see #79975 for details
|
|
|
|
legacyCargoFetcher = true;
|
|
|
|
|
2020-01-06 11:39:32 +01:00
|
|
|
cargoSha256 = "0q2g1hkqyzq9lsas4fhsbpk3jn5hikchh6i1jf9c08ca2xm136c2";
|
2019-02-02 10:50:15 +01:00
|
|
|
|
|
|
|
buildInputs = [ pkgconfig ];
|
|
|
|
propagatedBuildInputs = [ openssl gmp ncurses ];
|
|
|
|
|
|
|
|
# Some tests fail and/or attempt to use internet servers.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Unit-aware calculator";
|
2020-01-06 11:39:32 +01:00
|
|
|
homepage = "http://rink.tiffnix.com";
|
2019-02-02 10:50:15 +01:00
|
|
|
license = with licenses; [ mpl20 gpl3 ];
|
2020-01-06 11:41:19 +01:00
|
|
|
maintainers = with maintainers; [ sb0 filalex77 ];
|
2019-02-02 10:50:15 +01:00
|
|
|
};
|
|
|
|
}
|