nixpkgs/pkgs/tools/networking/findomain/default.nix

38 lines
834 B
Nix
Raw Normal View History

2019-12-30 12:56:03 +00:00
{ stdenv
, lib
, fetchFromGitHub
, rustPlatform
, installShellFiles
, perl
2021-05-14 22:36:55 +01:00
, libiconv
2019-12-30 12:56:03 +00:00
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "findomain";
2022-02-18 07:34:20 +00:00
version = "7.0.0";
2019-12-30 12:56:03 +00:00
src = fetchFromGitHub {
owner = "Edu4rdSHL";
repo = pname;
rev = version;
2022-02-18 07:34:20 +00:00
sha256 = "sha256-dxOR+rgTaSgauVBz5PgSn8MPmsdQTEGH7h5bXFIT7wM=";
2019-12-30 12:56:03 +00:00
};
2022-02-18 07:34:20 +00:00
cargoSha256 = "sha256-w8+wn8jnsEZAkMEZRWMaytskhG+noMPjk4+U+SdghMQ=";
2019-12-30 12:56:03 +00:00
nativeBuildInputs = [ installShellFiles perl ];
2021-05-14 22:36:55 +01:00
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
2019-12-30 12:56:03 +00: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 22:08:39 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ Br1ght0ne ];
2019-12-30 12:56:03 +00:00
};
}