2019-12-30 13:56:03 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, installShellFiles
|
|
|
|
, perl
|
2021-05-14 23:36:55 +02:00
|
|
|
, libiconv
|
2019-12-30 13:56:03 +01:00
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "findomain";
|
2022-08-22 13:23:54 +02:00
|
|
|
version = "8.2.1";
|
2019-12-30 13:56:03 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Edu4rdSHL";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-08-22 13:23:54 +02:00
|
|
|
sha256 = "sha256-NlaQhQtGQzOaTD18NMiicQOrovRuTCUq54vxu34JqIU=";
|
2019-12-30 13:56:03 +01:00
|
|
|
};
|
|
|
|
|
2022-08-22 13:23:54 +02:00
|
|
|
cargoSha256 = "sha256-I9OyH02JNdNgGK3918XwS5wt+11VppCTqzo50LuhnvI=";
|
2019-12-30 13:56:03 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles perl ];
|
2021-05-14 23:36:55 +02:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
|
2019-12-30 13:56:03 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage ${pname}.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The fastest and cross-platform subdomain enumerator";
|
|
|
|
homepage = "https://github.com/Edu4rdSHL/findomain";
|
2021-03-20 23:08:39 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2020-11-17 12:02:06 +01:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne ];
|
2019-12-30 13:56:03 +01:00
|
|
|
};
|
|
|
|
}
|