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 14:34:25 +00:00
{ lib, stdenv, fetchFromGitHub, rustPlatform, openssl, pkg-config, ncurses
, libiconv, Security }:
2019-02-02 09:50:15 +00:00
rustPlatform.buildRustPackage rec {
2022-03-28 18:13:37 +00:00
version = "0.6.3";
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}";
2022-03-28 18:13:37 +00:00
sha256 = "sha256-AhC3c6CpV0tlD6d/hFWt7hGj2UsXsOCeujkRSDlpvCM=";
2019-02-02 09:50:15 +00:00
};
2022-03-28 18:13:37 +00:00
cargoSha256 = "sha256-Xo5iYwL4Db+GWMl5UXbPmj0Y0PJYR4Q0aUGnYCd+NB8=";
2020-07-18 10:30:05 +00:00
nativeBuildInputs = [ pkg-config ];
2021-05-18 14:34:25 +00: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 10:30:05 +00:00
homepage = "https://rinkcalc.app";
2021-04-11 21:18:32 +00:00
license = with licenses; [ mpl20 gpl3Plus ];
maintainers = with maintainers; [ sb0 Br1ght0ne ];
2019-02-02 09:50:15 +00:00
};
}