Commit 801ca9c5 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

authoscope: refactor

- add changelog to meta
- remove with lib;
- migrate to tag
- add nix-update-script
parent 0fd3829a
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  fetchFromGitHub,
  installShellFiles,
  libcap,
  nix-update-script,
  openssl,
  pkg-config,
  rustPlatform,
@@ -17,9 +18,9 @@ rustPlatform.buildRustPackage rec {

  src = fetchFromGitHub {
    owner = "kpcyrd";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-SKgb/N249s0+Rb59moBT/MeFb4zAAElCMQJto0diyUk=";
    repo = "authoscope";
    tag = "v${version}";
    hash = "sha256-SKgb/N249s0+Rb59moBT/MeFb4zAAElCMQJto0diyUk=";
  };

  cargoHash = "sha256-rSHuKy86iJNLAKSVcb7fn7A/cc75EOc97jGI14EaC6k=";
@@ -42,10 +43,13 @@ rustPlatform.buildRustPackage rec {
  # Tests requires access to httpin.org
  doCheck = false;

  meta = with lib; {
  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Scriptable network authentication cracker";
    homepage = "https://github.com/kpcyrd/authoscope";
    license = with licenses; [ gpl3Plus ];
    maintainers = with maintainers; [ fab ];
    changelog = "https://github.com/kpcyrd/authoscope/releases/tag/v${version}";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ fab ];
  };
}