envio: 0.5.1 -> 0.6.1

This commit is contained in:
R. Ryantm 2024-09-27 12:57:47 +00:00 committed by Alexis Hildebrandt
parent e1aea43706
commit 320dac95fb

View File

@ -13,29 +13,22 @@ let
in
rustPlatform.buildRustPackage rec {
pname = "envio";
version = "0.5.1";
version = "0.6.1";
src = fetchFromGitHub {
owner = "envio-cli";
repo = "envio";
rev = "v${version}";
hash = "sha256-KhjHd+1IeKdASeYP2rPtyTmtkPcBbaruylmOwTPtFgo=";
hash = "sha256-je0DBoBIayFK//Aija5bnO/2z+hxNWgVkwOgxMyq5s4=";
};
cargoHash = "sha256-qmJUARwsGln07RAX1Ab0cNDgJq7NkezuT0tZsyd48Mw=";
cargoHash = "sha256-L7GgPocj32zAfR27dgKK7/OM106cATdCqufSvG3MFYQ=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ libgpg-error gpgme ]
++ lib.optionals stdenv.hostPlatform.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";