Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
clang,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
installShellFiles,
|
|
openssl,
|
|
libpcap,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cowpatty";
|
|
version = "4.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "joswr1ght";
|
|
repo = "cowpatty";
|
|
tag = version;
|
|
sha256 = "0fvwwghhd7wsx0lw2dj9rdsjnirawnq3c6silzvhi0yfnzn5fs0s";
|
|
};
|
|
|
|
patches = [
|
|
# Pull upstream fix for parallel builds:
|
|
# https://github.com/joswr1ght/cowpatty/pull/5
|
|
(fetchpatch {
|
|
name = "fix-parallel.patch";
|
|
url = "https://github.com/joswr1ght/cowpatty/commit/9c8cc09c4fa90aebee44afcd0ad6a35539178478.patch";
|
|
hash = "sha256-k0Qht80HcjvPoxVPF6wAXwxN3d2mxBrEyeFGuU7w9eA=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
clang
|
|
installShellFiles
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
libpcap
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
makeFlags = [
|
|
"DESTDIR=$(out)"
|
|
"BINDIR=/bin"
|
|
];
|
|
|
|
postInstall = ''
|
|
installManPage cowpatty.1
|
|
installManPage genpmk.1
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Offline dictionary attack against WPA/WPA2 networks";
|
|
homepage = "https://github.com/joswr1ght/cowpatty";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [
|
|
nico202
|
|
fab
|
|
];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|