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

This commit is contained in:
Alexis Hildebrandt 2024-09-29 17:08:56 +02:00
parent 320dac95fb
commit 61e7e2e965

View File

@ -1,11 +1,14 @@
{ lib {
, stdenv lib,
, fetchFromGitHub stdenv,
, darwin fetchFromGitHub,
, gpgme fetchpatch,
, libgpg-error installShellFiles,
, pkg-config darwin,
, rustPlatform gpgme,
libgpg-error,
pkg-config,
rustPlatform,
}: }:
let let
@ -24,14 +27,23 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-L7GgPocj32zAfR27dgKK7/OM106cATdCqufSvG3MFYQ="; cargoHash = "sha256-L7GgPocj32zAfR27dgKK7/OM106cATdCqufSvG3MFYQ=";
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [
pkg-config
installShellFiles
];
buildInputs = [ libgpg-error gpgme ] buildInputs = [
++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ]; libgpg-error
gpgme
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
postInstall = ''
installManPage man/*.1
'';
meta = with lib; { meta = with lib; {
homepage = "https://envio-cli.github.io/home"; homepage = "https://envio-cli.github.io/home";
changelog = "https://github.com/envio-cli/envio/blob/${version}/CHANGELOG.md"; changelog = "https://github.com/envio-cli/envio/blob/${version}/CHANGELOG.md";
description = "Modern and secure CLI tool for managing environment variables"; description = "Modern and secure CLI tool for managing environment variables";
mainProgram = "envio"; mainProgram = "envio";
longDescription = '' longDescription = ''
@ -40,8 +52,11 @@ rustPlatform.buildRustPackage rec {
switch between different configurations and apply them to their current switch between different configurations and apply them to their current
environment. environment.
''; '';
license = with licenses; [ mit asl20 ]; license = with licenses; [
platforms = platforms.unix; mit
asl20
];
platforms = platforms.unix;
maintainers = with maintainers; [ afh ]; maintainers = with maintainers; [ afh ];
}; };
} }