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

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

49 lines
843 B
Nix
Raw Normal View History

2021-08-31 20:58:52 +00:00
{ lib
, stdenv
, clang
, fetchFromGitHub
, installShellFiles
, openssl
, libpcap
2016-11-25 10:25:07 +00:00
}:
stdenv.mkDerivation rec {
pname = "cowpatty";
2021-08-31 20:58:52 +00:00
version = "4.8";
2016-11-25 10:25:07 +00:00
2021-08-31 20:58:52 +00:00
src = fetchFromGitHub {
owner = "joswr1ght";
repo = pname;
rev = version;
sha256 = "0fvwwghhd7wsx0lw2dj9rdsjnirawnq3c6silzvhi0yfnzn5fs0s";
2016-11-25 10:25:07 +00:00
};
2021-08-31 20:58:52 +00:00
nativeBuildInputs = [
clang
installShellFiles
];
buildInputs = [
openssl
libpcap
];
makeFlags = [
"DESTDIR=$(out)"
"BINDIR=/bin"
];
postInstall = ''
installManPage cowpatty.1
installManPage genpmk.1
'';
2016-11-25 10:25:07 +00:00
2021-08-31 20:58:52 +00:00
meta = with lib; {
2016-11-25 10:25:07 +00:00
description = "Offline dictionary attack against WPA/WPA2 networks";
2021-08-31 20:58:52 +00:00
homepage = "https://github.com/joswr1ght/cowpatty";
license = licenses.bsd3;
maintainers = with maintainers; [ nico202 fab ];
2016-11-25 10:25:07 +00:00
platforms = platforms.linux;
};
}