Commit 61e7e2e9 authored by Alexis Hildebrandt's avatar Alexis Hildebrandt
Browse files

envio: add manpage, reformat using nixfmt-rfc-style

parent 320dac95
Loading
Loading
Loading
Loading
+30 −15
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, darwin
, gpgme
, libgpg-error
, pkg-config
, rustPlatform
{
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  installShellFiles,
  darwin,
  gpgme,
  libgpg-error,
  pkg-config,
  rustPlatform,
}:

let
@@ -24,10 +27,19 @@ rustPlatform.buildRustPackage rec {

  cargoHash = "sha256-L7GgPocj32zAfR27dgKK7/OM106cATdCqufSvG3MFYQ=";

  nativeBuildInputs = [ pkg-config ];
  nativeBuildInputs = [
    pkg-config
    installShellFiles
  ];

  buildInputs = [ libgpg-error gpgme ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
  buildInputs = [
    libgpg-error
    gpgme
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];

  postInstall = ''
    installManPage man/*.1
  '';

  meta = with lib; {
    homepage = "https://envio-cli.github.io/home";
@@ -40,7 +52,10 @@ rustPlatform.buildRustPackage rec {
      switch between different configurations and apply them to their current
      environment.
    '';
    license     = with licenses; [ mit asl20 ];
    license = with licenses; [
      mit
      asl20
    ];
    platforms = platforms.unix;
    maintainers = with maintainers; [ afh ];
  };