2022-05-18 14:49:53 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, openssl, zlib }:
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ncrack";
|
|
|
|
version = "0.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nmap";
|
|
|
|
repo = "ncrack";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1gnv5xdd7n04glcpy7q1mkb6f8gdhdrhlrh8z6k4g2pjdhxlz26g";
|
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
patches = [
|
|
|
|
# Pull upstream fix for -fno-common toolchains like upstream gcc-10:
|
|
|
|
# https://github.com/nmap/ncrack/pull/83
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fno-common.patch";
|
|
|
|
url = "https://github.com/nmap/ncrack/commit/cc4103267bab6017a4da9d41156d0c1075012eba.patch";
|
|
|
|
sha256 = "06nlfvc7p108f8ppbcgwmj4iwmjy95xhc1sawa8c78lrx22r7gy3";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# Our version is good; the check is bad.
|
|
|
|
configureFlags = [ "--without-zlib-version-check" ];
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
buildInputs = [ openssl zlib ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-30 08:33:03 +00:00
|
|
|
description = "Network authentication tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ncrack";
|
2020-11-30 08:33:03 +00:00
|
|
|
homepage = "https://nmap.org/ncrack/";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|