Alias nmap-unfree to nmap

This commit is contained in:
Kilian Holzinger 2021-04-06 11:45:35 +02:00
parent e12bbb6ad8
commit 1d304d07a6
3 changed files with 1 additions and 67 deletions

View File

@ -1,65 +0,0 @@
{ lib
, stdenv
, fetchurl
, libpcap
, pkg-config
, openssl
, lua5_3
, pcre
, liblinear
, libssh2
, zlib
, withLua ? true
}:
stdenv.mkDerivation rec {
pname = "nmap-unfree";
version = "7.91";
src = fetchurl {
url = "https://nmap.org/dist/nmap-${version}.tar.bz2";
sha256 = "001kb5xadqswyw966k2lqi6jr6zz605jpp9w4kmm272if184pk0q";
};
prePatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace libz/configure \
--replace /usr/bin/libtool ar \
--replace 'AR="libtool"' 'AR="ar"' \
--replace 'ARFLAGS="-o"' 'ARFLAGS="-r"'
'';
configureFlags = [
(if withLua then "--with-liblua=${lua5_3}" else "--without-liblua")
];
makeFlags = lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
"AR=${stdenv.cc.bintools.targetPrefix}ar"
"RANLIB=${stdenv.cc.bintools.targetPrefix}ranlib"
"CC=${stdenv.cc.targetPrefix}gcc"
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
pcre
liblinear
libssh2
libpcap
openssl
zlib
];
enableParallelBuilding = true;
# Tests require network access
doCheck = false;
meta = with lib; {
description = "Open source utility for network discovery and security auditing";
homepage = "http://www.nmap.org";
# Nmap Public Source License Version 0.93
# https://github.com/nmap/nmap/blob/master/LICENSE
license = licenses.unfree;
maintainers = with maintainers; [ fab SuperSandro2000 ];
};
}

View File

@ -453,6 +453,7 @@ mapAliases ({
nilfs_utils = nilfs-utils; # added 2018-04-25
nix-review = nixpkgs-review; # added 2019-12-22
nmap_graphical = nmap-graphical; # added 2017-01-19
nmap-unfree = nmap; # added 2021-04-06
nologin = shadow; # added 2018-04-25
nxproxy = nx-libs; # added 2019-02-15
nylas-mail-bin = throw "nylas-mail-bin was deprecated on 2019-09-11: abandoned by upstream";

View File

@ -6822,8 +6822,6 @@ in
graphicalSupport = true;
};
nmap-unfree = callPackage ../tools/security/nmap-unfree { };
nmapsi4 = libsForQt514.callPackage ../tools/security/nmap/qt.nix { };
nnn = callPackage ../applications/misc/nnn { };