3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/misc/rink/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
855 B
Nix
Raw Normal View History

2021-05-18 15:34:25 +01:00
{ lib, stdenv, fetchFromGitHub, rustPlatform, openssl, pkg-config, ncurses
, libiconv, Security }:
2019-02-02 09:50:15 +00:00
rustPlatform.buildRustPackage rec {
2021-12-06 23:57:17 +00:00
version = "0.6.2";
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-12-06 23:57:17 +00:00
sha256 = "sha256-l2Rj15zaJm94EHwvOssfvYQNOoWj45Nq9M85n+A0vo4=";
2019-02-02 09:50:15 +00:00
};
2021-12-06 23:57:17 +00:00
cargoSha256 = "sha256-GhuvwVkDRFjC6BghaNMFZZG9hResTN1u0AuvIXlFmig=";
2020-07-18 11:30:05 +01:00
nativeBuildInputs = [ pkg-config ];
2021-05-18 15:34:25 +01:00
buildInputs = [ ncurses ]
++ (if stdenv.isDarwin then [ libiconv Security ] else [ openssl ]);
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";
2021-04-11 22:18:32 +01:00
license = with licenses; [ mpl20 gpl3Plus ];
maintainers = with maintainers; [ sb0 Br1ght0ne ];
2019-02-02 09:50:15 +00:00
};
}