nixpkgs/pkgs/tools/networking/findomain/default.nix
2021-05-11 03:13:59 +00:00

37 lines
809 B
Nix

{ stdenv
, lib
, fetchFromGitHub
, rustPlatform
, installShellFiles
, perl
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "findomain";
version = "4.1.1";
src = fetchFromGitHub {
owner = "Edu4rdSHL";
repo = pname;
rev = version;
sha256 = "sha256-ySpkWAhLS4jPFviKnzcnW7vuUFyojTBhooq7CFz/y3w=";
};
cargoSha256 = "sha256-KWh++MHaCJpJq7mS2lRCUh0nN+e8McKWcTknUC8VFuo=";
nativeBuildInputs = [ installShellFiles perl ];
buildInputs = lib.optional stdenv.isDarwin Security;
postInstall = ''
installManPage ${pname}.1
'';
meta = with lib; {
description = "The fastest and cross-platform subdomain enumerator";
homepage = "https://github.com/Edu4rdSHL/findomain";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ Br1ght0ne ];
};
}