1{ lib
2, autoconf
3, automake
4, autoreconfHook
5, fetchFromGitHub
6, fetchpatch
7, openssl
8, stdenv
9}:
10
11stdenv.mkDerivation rec {
12 pname = "ike-scan";
13 version = "1.9.5";
14
15 src = fetchFromGitHub {
16 owner = "royhills";
17 repo = pname;
18 rev = version;
19 sha256 = "sha256-mbfg8p3y4aKoXpmLuF9GXAMPEqV5CsvetwGCRDJ9UNY=";
20 };
21
22 nativeBuildInputs = [
23 autoreconfHook
24 openssl
25 ];
26
27 configureFlags = [ "--with-openssl=${openssl.dev}" ];
28
29 patches = [
30 # Using the same patches as for the Fedora RPM
31 (fetchpatch {
32 # Memory leaks, https://github.com/royhills/ike-scan/pull/15
33 url = "https://github.com/royhills/ike-scan/pull/15/commits/d864811de08dcddd65ac9b8d0f2acf5d7ddb9dea.patch";
34 sha256 = "0wbrq89dl8js7cdivd0c45hckmflan33cpgc3qm5s3az6r4mjljm";
35 })
36 ];
37
38 meta = with lib; {
39 description = "Tool to discover, fingerprint and test IPsec VPN servers";
40 longDescription = ''
41 ike-scan is a command-line tool that uses the IKE protocol to discover,
42 fingerprint and test IPsec VPN servers.
43 '';
44 homepage = "https://github.com/royhills/ike-scan";
45 license = with licenses; [ gpl3Plus ];
46 platforms = platforms.linux;
47 maintainers = with maintainers; [ fab ];
48 };
49}