nixpkgs/pkgs/tools/security/authoscope/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
960 B
Nix
Raw Normal View History

2021-04-21 18:04:01 +02:00
{ lib
, stdenv
, fetchFromGitHub
, installShellFiles
, libcap
, openssl
, pkg-config
, rustPlatform
, Security
, zlib
}:
rustPlatform.buildRustPackage rec {
pname = "authoscope";
2022-03-24 10:01:26 +01:00
version = "0.8.1";
2021-04-21 18:04:01 +02:00
src = fetchFromGitHub {
owner = "kpcyrd";
repo = pname;
rev = "v${version}";
2022-03-24 10:01:26 +01:00
sha256 = "sha256-SKgb/N249s0+Rb59moBT/MeFb4zAAElCMQJto0diyUk=";
2021-04-21 18:04:01 +02:00
};
2022-03-24 10:01:26 +01:00
cargoSha256 = "sha256-rSHuKy86iJNLAKSVcb7fn7A/cc75EOc97jGI14EaC6k=";
2021-04-21 18:04:01 +02:00
nativeBuildInputs = [
installShellFiles
pkg-config
];
buildInputs = [
libcap
zlib
openssl
] ++ lib.optional stdenv.isDarwin Security;
postInstall = ''
installManPage docs/${pname}.1
'';
# Tests requires access to httpin.org
doCheck = false;
meta = with lib; {
description = "Scriptable network authentication cracker";
homepage = "https://github.com/kpcyrd/authoscope";
license = with licenses; [ gpl3Plus ];
2021-04-21 18:04:01 +02:00
maintainers = with maintainers; [ fab ];
};
}