Commit e9dbbdc1 authored by Leon Barrett's avatar Leon Barrett
Browse files

rink: install man pages

The rink package has man pages, but they weren't installed. This changes
the package to install them.
parent 43c202da
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, rustPlatform, openssl, pkg-config, ncurses
, curl, libiconv, Security }:
, curl, installShellFiles, asciidoctor, libiconv, Security }:

rustPlatform.buildRustPackage rec {
  version = "0.8.0";
@@ -14,13 +14,21 @@ rustPlatform.buildRustPackage rec {

  cargoHash = "sha256-j1pQfMjDNu57otOBTVBQEZIx80p4/beEUQdUkAJhvso=";

  nativeBuildInputs = [ pkg-config ];
  nativeBuildInputs = [ pkg-config installShellFiles asciidoctor ];
  buildInputs = [ ncurses ]
    ++ (if stdenv.isDarwin then [ curl libiconv Security ] 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";