2021-04-22 02:08:21 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
, libcap
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
|
|
|
, Security
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "authoscope";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "0.8.1";
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kpcyrd";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-SKgb/N249s0+Rb59moBT/MeFb4zAAElCMQJto0diyUk=";
|
2021-04-22 02:08:21 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
cargoHash = "sha256-rSHuKy86iJNLAKSVcb7fn7A/cc75EOc97jGI14EaC6k=";
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libcap
|
|
|
|
zlib
|
|
|
|
openssl
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optional stdenv.hostPlatform.isDarwin Security;
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage docs/${pname}.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests requires access to httpin.org
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Scriptable network authentication cracker";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/kpcyrd/authoscope";
|
|
|
|
license = with licenses; [ gpl3Plus ];
|
2021-04-22 02:08:21 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|