Unverified Commit 801a62c2 authored by lassulus's avatar lassulus Committed by GitHub
Browse files

asleap: add meta.platforms; modernize; move to by-name (#353744)

parents 64e60eca 67c5af53
Loading
Loading
Loading
Loading
+23 −7
Original line number Diff line number Diff line
{lib, stdenv, fetchFromGitHub, openssl, libpcap, libxcrypt}:
{
  lib,
  stdenv,
  fetchFromGitHub,
  openssl,
  libpcap,
  libxcrypt,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation {
  pname = "asleap";
  version = "unstable-2021-06-20";

  src = fetchFromGitHub {
    owner = "zackw";
    repo = pname;
    repo = "asleap";
    rev = "eb3bd42098cba42b65f499c9d8c73d890861b94f";
    sha256 = "sha256-S6jS0cg9tHSfmP6VHyISkXJxczhPx3HDdxT46c+YmE8=";
  };

  buildInputs = [ openssl libpcap libxcrypt ];
  buildInputs = [
    openssl
    libpcap
    libxcrypt
  ];

  installPhase = ''
    runHook preInstall

    install -Dm755 asleap $out/bin/asleap
    install -Dm755 genkeys $out/bin/genkeys

    runHook postInstall
  '';

  meta = with lib; {
  meta = {
    homepage = "https://github.com/zackw/asleap";
    description = "Recovers weak LEAP and PPTP passwords";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ pyrox0 ];
    license = lib.licenses.gpl2Only;
    maintainers = with lib.maintainers; [ pyrox0 ];
    platforms = lib.platforms.linux;
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -1634,8 +1634,6 @@ with pkgs;
  askalono = callPackage ../tools/misc/askalono { };
  asleap = callPackage ../tools/networking/asleap { };
  awsbck = callPackage ../tools/backup/awsbck {
    inherit (darwin.apple_sdk.frameworks) Security;
  };