nixpkgs/pkgs/applications/science/misc/rink/default.nix

32 lines
887 B
Nix
Raw Normal View History

2019-02-02 09:50:15 +00:00
{ stdenv, fetchFromGitHub, rustPlatform, openssl, pkgconfig, gmp, ncurses }:
rustPlatform.buildRustPackage rec {
2020-01-06 10:39:32 +00:00
version = "0.4.5";
2019-08-31 11:41:23 +00:00
pname = "rink";
2019-02-02 09:50:15 +00:00
src = fetchFromGitHub {
owner = "tiffany352";
repo = "rink-rs";
rev = "v${version}";
2020-01-06 10:39:32 +00:00
sha256 = "0vl996y58a9b62d8sqrpfn2h8qkya7qbg5zqsmy7nxhph1vhbspj";
2019-02-02 09:50:15 +00:00
};
# Upstreamed in https://github.com/tiffany352/rink-rs/pull/53
cargoPatches = [ ./cargo-lock.patch ];
cargoSha256 = "0shlh0m9k0iqxpv9zmiw7a6v197swrvpz9x6qzhximzkdwni9gz9";
2019-02-02 09:50:15 +00:00
2020-03-29 07:59:33 +00:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl gmp ncurses ];
2019-02-02 09:50:15 +00:00
# Some tests fail and/or attempt to use internet servers.
doCheck = false;
meta = with stdenv.lib; {
description = "Unit-aware calculator";
homepage = "https://rink.tiffnix.com";
2019-02-02 09:50:15 +00:00
license = with licenses; [ mpl20 gpl3 ];
2020-01-06 10:41:19 +00:00
maintainers = with maintainers; [ sb0 filalex77 ];
2019-02-02 09:50:15 +00:00
};
}