Unverified Commit 57c19073 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

aegis-rs: init at 0.5.0 (#462318)

parents 85da0331 6ab57d62
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -9974,6 +9974,12 @@
    githubId = 66037909;
    name = "Graham J. Norris";
  };
  granddave = {
    email = "davidisaksson93@gmail.com";
    github = "Granddave";
    githubId = 13297896;
    name = "David Isaksson";
  };
  gravndal = {
    email = "gaute.ravndal+nixos@gmail.com";
    github = "gravndal";
+34 −0
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  nix-update-script,
  versionCheckHook,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "aegis-rs";
  version = "0.5.0";

  src = fetchFromGitHub {
    owner = "Granddave";
    repo = "aegis-rs";
    tag = "v${finalAttrs.version}";
    hash = "sha256-V6b9CDLjpyRb/MlbAswQ2kJFGeYDu9r2Y/8lBB+kLGc=";
  };
  cargoHash = "sha256-QYTmTJiwqslFM1VT+B+HtA8idvhKOPY4+ip/FqQGZ34=";

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

  nativeInstallCheckInputs = [ versionCheckHook ];
  doInstallCheck = true;

  meta = {
    description = "Aegis compatible OTP generator for the CLI";
    homepage = "https://github.com/Granddave/aegis-rs";
    changelog = "https://github.com/Granddave/aegis-rs/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ granddave ];
    mainProgram = "aegis-rs";
  };
})