From 61e7e2e9659097f26ab7e056c3b7373c3f38506a Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Sun, 29 Sep 2024 17:08:56 +0200 Subject: [PATCH] envio: add manpage, reformat using nixfmt-rfc-style --- pkgs/by-name/en/envio/package.nix | 45 ++++++++++++++++++++----------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/pkgs/by-name/en/envio/package.nix b/pkgs/by-name/en/envio/package.nix index adbd6607eee5..c723ba7dc996 100644 --- a/pkgs/by-name/en/envio/package.nix +++ b/pkgs/by-name/en/envio/package.nix @@ -1,11 +1,14 @@ -{ lib -, stdenv -, fetchFromGitHub -, darwin -, gpgme -, libgpg-error -, pkg-config -, rustPlatform +{ + lib, + stdenv, + fetchFromGitHub, + fetchpatch, + installShellFiles, + darwin, + gpgme, + libgpg-error, + pkg-config, + rustPlatform, }: let @@ -24,14 +27,23 @@ 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"; - changelog = "https://github.com/envio-cli/envio/blob/${version}/CHANGELOG.md"; + homepage = "https://envio-cli.github.io/home"; + changelog = "https://github.com/envio-cli/envio/blob/${version}/CHANGELOG.md"; description = "Modern and secure CLI tool for managing environment variables"; mainProgram = "envio"; longDescription = '' @@ -40,8 +52,11 @@ rustPlatform.buildRustPackage rec { switch between different configurations and apply them to their current environment. ''; - license = with licenses; [ mit asl20 ]; - platforms = platforms.unix; + license = with licenses; [ + mit + asl20 + ]; + platforms = platforms.unix; maintainers = with maintainers; [ afh ]; }; }