diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-02-13 12:25:07 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-02-13 12:25:07 +0100 |
commit | a5e1520e4538e29ecfbd4b168306f890566d7bfd (patch) | |
tree | 28099c268b5d4b1e33c2b29f0714c45f0b961382 /nixpkgs/pkgs/by-name/en | |
parent | 822f7c15c04567fbdc27020e862ea2b70cfbf8eb (diff) | |
parent | 3560d1c8269d0091b9aae10731b5e85274b7bbc1 (diff) | |
download | nixlib-a5e1520e4538e29ecfbd4b168306f890566d7bfd.tar nixlib-a5e1520e4538e29ecfbd4b168306f890566d7bfd.tar.gz nixlib-a5e1520e4538e29ecfbd4b168306f890566d7bfd.tar.bz2 nixlib-a5e1520e4538e29ecfbd4b168306f890566d7bfd.tar.lz nixlib-a5e1520e4538e29ecfbd4b168306f890566d7bfd.tar.xz nixlib-a5e1520e4538e29ecfbd4b168306f890566d7bfd.tar.zst nixlib-a5e1520e4538e29ecfbd4b168306f890566d7bfd.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Conflicts: nixpkgs/nixos/modules/services/mail/rss2email.nix nixpkgs/pkgs/build-support/go/module.nix
Diffstat (limited to 'nixpkgs/pkgs/by-name/en')
-rw-r--r-- | nixpkgs/pkgs/by-name/en/envio/package.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/en/envio/package.nix b/nixpkgs/pkgs/by-name/en/envio/package.nix new file mode 100644 index 000000000000..eebe13711e71 --- /dev/null +++ b/nixpkgs/pkgs/by-name/en/envio/package.nix @@ -0,0 +1,53 @@ +{ lib +, stdenv +, fetchFromGitHub +, darwin +, gpgme +, libgpg-error +, pkg-config +, rustPlatform +}: + +let + inherit (darwin.apple_sdk.frameworks) Security; +in +rustPlatform.buildRustPackage rec { + pname = "envio"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "envio-cli"; + repo = "envio"; + rev = "v${version}"; + hash = "sha256-HVu2Ua1iu7Z14RUbdDQ4ElOGnfYjZCekFvAolu2lM7w="; + }; + + cargoHash = "sha256-AVbAHaLARMKGf5ZIygyWWSkg4U1Xkfjwm9XPNZNtUsE="; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ libgpg-error gpgme ] + ++ lib.optionals stdenv.isDarwin [ Security ]; + + # Remove postPatch when updating to the next envio release + # For details see https://github.com/envio-cli/envio/pull/31 + postPatch = '' + substituteInPlace build.rs\ + --replace 'fn get_version() -> String {' 'fn get_version() -> String { return "${version}".to_string();' + ''; + + 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"; + 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 ]; + }; +} |