Files
nixpkgs/pkgs/by-name/ri/rink/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

71 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
openssl,
pkg-config,
ncurses,
curl,
installShellFiles,
asciidoctor,
libiconv,
}:
rustPlatform.buildRustPackage rec {
version = "0.8.0";
pname = "rink";
src = fetchFromGitHub {
owner = "tiffany352";
repo = "rink-rs";
rev = "v${version}";
hash = "sha256-2+ZkyWhEnnO/QgCzWscbMr0u5kwdv2HqPLjtiXDfv/o=";
};
cargoHash = "sha256-XvtEXBsdxUMJJntzzKVbUIjg78JpwyuUlTm6J3huDPE=";
nativeBuildInputs = [
pkg-config
installShellFiles
asciidoctor
];
buildInputs = [
ncurses
]
++ (
if stdenv.hostPlatform.isDarwin then
[
curl
libiconv
]
else
[ openssl ]
);
# Some tests fail and/or attempt to use internet servers.
doCheck = false;
postBuild = ''
make man
'';
postInstall = ''
installManPage build/*
'';
meta = with lib; {
description = "Unit-aware calculator";
mainProgram = "rink";
homepage = "https://rinkcalc.app";
license = with licenses; [
mpl20
gpl3Plus
];
maintainers = with maintainers; [
sb0
Br1ght0ne
];
};
}