587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
31 lines
879 B
Nix
31 lines
879 B
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform, openssl, pkg-config, ncurses
|
|
, libiconv, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
version = "0.7.0";
|
|
pname = "rink";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tiffany352";
|
|
repo = "rink-rs";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-5UrSJ/y6GxDUNaljal57JJY17NuI+2yLwVTwp+xBNxs=";
|
|
};
|
|
|
|
cargoHash = "sha256-G30NcP1ej01ygHzaxZ2OdgfksvXe/SCsmZFwamxlDvA=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ ncurses ]
|
|
++ (if stdenv.isDarwin then [ libiconv Security ] else [ openssl ]);
|
|
|
|
# Some tests fail and/or attempt to use internet servers.
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Unit-aware calculator";
|
|
mainProgram = "rink";
|
|
homepage = "https://rinkcalc.app";
|
|
license = with licenses; [ mpl20 gpl3Plus ];
|
|
maintainers = with maintainers; [ sb0 Br1ght0ne ];
|
|
};
|
|
}
|