Commit edade641 authored by Alexis Hildebrandt's avatar Alexis Hildebrandt
Browse files

envio: 0.6.1 -> 0.7.0; add nix-update-script

parent 7698c11d
Loading
Loading
Loading
Loading
+11 −3
Original line number Diff line number Diff line
{
  stdenv,
  lib,
  fetchFromGitHub,
  installShellFiles,
  gpgme,
  dbus,
  libgpg-error,
  pkg-config,
  rustPlatform,
  nix-update-script,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "envio";
  version = "0.6.1";
  version = "0.7.0";

  src = fetchFromGitHub {
    owner = "humblepenguinn";
    repo = "envio";
    rev = "v${finalAttrs.version}";
    hash = "sha256-je0DBoBIayFK//Aija5bnO/2z+hxNWgVkwOgxMyq5s4=";
    hash = "sha256-uiuJ3yFuU5S0e6SrD1C4tU5Ve/VBoGmyclbokESDZAw=";
  };

  cargoHash = "sha256-stb5BZ77yBUjP6p3yfdgtN6fkE7wWU6A+sPAmc8YZD0=";
  cargoHash = "sha256-eECjTnqjy38jA5kHddPaBZaZ/1ErHB7uQPbZYNFBcSU=";

  nativeBuildInputs = [
    pkg-config
@@ -29,12 +32,17 @@ rustPlatform.buildRustPackage (finalAttrs: {
  buildInputs = [
    libgpg-error
    gpgme
  ]
  ++ lib.optionals stdenv.hostPlatform.isLinux [
    dbus
  ];

  postInstall = ''
    installManPage man/*.1
  '';

  passthru.updateScript = nix-update-script { };

  meta = {
    changelog = "https://github.com/humblepenguinn/envio/blob/v${finalAttrs.version}/CHANGELOG.md";
    description = "Modern and secure CLI tool for managing environment variables";