{ lib, fetchFromGitHub, installShellFiles, gpgme, libgpg-error, pkg-config, rustPlatform, }: rustPlatform.buildRustPackage rec { pname = "envio"; version = "0.6.1"; src = fetchFromGitHub { owner = "envio-cli"; repo = "envio"; rev = "v${version}"; hash = "sha256-je0DBoBIayFK//Aija5bnO/2z+hxNWgVkwOgxMyq5s4="; }; cargoHash = "sha256-stb5BZ77yBUjP6p3yfdgtN6fkE7wWU6A+sPAmc8YZD0="; nativeBuildInputs = [ pkg-config installShellFiles ]; buildInputs = [ libgpg-error gpgme ]; postInstall = '' installManPage man/*.1 ''; meta = { 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 = '' Envio is a command-line tool that simplifies the management of environment variables across multiple profiles. It allows users to easily switch between different configurations and apply them to their current environment. ''; license = with lib.licenses; [ mit asl20 ]; platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ afh ]; }; }