2024-02-12 11:16:54 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, darwin
|
|
|
|
, gpgme
|
|
|
|
, libgpg-error
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (darwin.apple_sdk.frameworks) Security;
|
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "envio";
|
2024-09-27 12:57:47 +00:00
|
|
|
version = "0.6.1";
|
2024-02-12 11:16:54 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "envio-cli";
|
|
|
|
repo = "envio";
|
|
|
|
rev = "v${version}";
|
2024-09-27 12:57:47 +00:00
|
|
|
hash = "sha256-je0DBoBIayFK//Aija5bnO/2z+hxNWgVkwOgxMyq5s4=";
|
2024-02-12 11:16:54 +00:00
|
|
|
};
|
|
|
|
|
2024-09-27 12:57:47 +00:00
|
|
|
cargoHash = "sha256-L7GgPocj32zAfR27dgKK7/OM106cATdCqufSvG3MFYQ=";
|
2024-02-12 11:16:54 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ libgpg-error gpgme ]
|
2024-09-24 15:50:49 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
|
2024-02-12 11:16:54 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
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";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "envio";
|
2024-02-12 11:16:54 +00:00
|
|
|
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 licenses; [ mit asl20 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ afh ];
|
|
|
|
};
|
|
|
|
}
|