Commit 320dac95 authored by R. RyanTM's avatar R. RyanTM Committed by Alexis Hildebrandt
Browse files

envio: 0.5.1 -> 0.6.1

parent e1aea437
Loading
Loading
Loading
Loading
+3 −10
Original line number Diff line number Diff line
@@ -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";