Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 32e44ef1828a
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: eccdb601c166
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Jan 24, 2021

  1. ike-scan: init at 1.9.4

    fabaff committed Jan 24, 2021
    Copy the full SHA
    c784a01 View commit details

Commits on Jan 25, 2021

  1. Merge pull request #107314 from fabaff/ike-scan

    ike-scan: init at 1.9.4
    SuperSandro2000 authored Jan 25, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    eccdb60 View commit details
Showing with 56 additions and 0 deletions.
  1. +54 −0 pkgs/tools/security/ike-scan/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
54 changes: 54 additions & 0 deletions pkgs/tools/security/ike-scan/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{ lib
, autoconf
, automake
, autoreconfHook
, fetchFromGitHub
, fetchpatch
, openssl
, stdenv
}:

stdenv.mkDerivation rec {
pname = "ike-scan";
version = "1.9.4";

src = fetchFromGitHub {
owner = "royhills";
repo = pname;
rev = version;
sha256 = "01a39bk9ma2lm59q320m9g11909if5gc3qynd8pzn6slqiq5r8kw";
};

nativeBuildInputs = [
autoreconfHook
openssl
];

configureFlags = [ "--with-openssl=${openssl.dev}" ];

patches = [
# Using the same patches as for the Fedora RPM
(fetchpatch {
# Memory leaks, https://github.com/royhills/ike-scan/pull/15
url = "https://github.com/royhills/ike-scan/pull/15/commits/d864811de08dcddd65ac9b8d0f2acf5d7ddb9dea.patch";
sha256 = "0wbrq89dl8js7cdivd0c45hckmflan33cpgc3qm5s3az6r4mjljm";
})
(fetchpatch {
# Unknown vendor IDs, https://github.com/royhills/ike-scan/pull/18, was merged but not released
url = "https://github.com/royhills/ike-scan/pull/18/commits/e065ddbe471880275dc7975e7da235e7a2097c22.patch";
sha256 = "13ly01c96nnd5yh7rxrhv636csm264m5xf2a1inprrzxkkri5sls";
})
];

meta = with lib; {
description = "Tool to discover, fingerprint and test IPsec VPN servers";
longDescription = ''
ike-scan is a command-line tool that uses the IKE protocol to discover,
fingerprint and test IPsec VPN servers.
'';
homepage = "https://github.com/royhills/ike-scan";
license = with licenses; [ gpl3Plus ];
platforms = platforms.linux;
maintainers = with maintainers; [ fab ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -5168,6 +5168,8 @@ in

iruby = callPackage ../applications/editors/jupyter-kernels/iruby { };

ike-scan = callPackage ../tools/security/ike-scan { };

imapproxy = callPackage ../tools/networking/imapproxy {
openssl = openssl_1_0_2;
};