depot/pkgs/by-name/as/asleap/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

43 lines
828 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
openssl,
libpcap,
libxcrypt,
}:
stdenv.mkDerivation {
pname = "asleap";
version = "unstable-2021-06-20";
src = fetchFromGitHub {
owner = "zackw";
repo = "asleap";
rev = "eb3bd42098cba42b65f499c9d8c73d890861b94f";
sha256 = "sha256-S6jS0cg9tHSfmP6VHyISkXJxczhPx3HDdxT46c+YmE8=";
};
buildInputs = [
openssl
libpcap
libxcrypt
];
installPhase = ''
runHook preInstall
install -Dm755 asleap $out/bin/asleap
install -Dm755 genkeys $out/bin/genkeys
runHook postInstall
'';
meta = {
homepage = "https://github.com/zackw/asleap";
description = "Recovers weak LEAP and PPTP passwords";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ pyrox0 ];
platforms = lib.platforms.linux;
};
}