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

54 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, rustPlatform
, installShellFiles
, perl
, libiconv
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "findomain";
version = "8.2.2";
src = fetchFromGitHub {
owner = "Edu4rdSHL";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-9mtXtBq08lL6qQg1Pq1WNwbkG0yi99mCpxNuBvr14ms=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"fhc-0.7.1" = "sha256-bLlaQN9HdAUt6kgP7ToVkZwwD0fNsNMmXn+BtxP52Ss=";
"headless_chrome-0.9.0" = "sha256-0BMm0tmCbUL1BSdD6rJLG735FYJsmkSrPQBs2zWx414=";
"rusolver-0.9.1" = "sha256-84qe/A+FN8Q+r8tk0waOq+sBgnDpG9bwoQI+K5pE4Wc=";
"trust-dns-proto-0.20.4" = "sha256-+oAjyyTXbKir8e5kn8CUmQy5qmzQ47ryvBBdZtzj1TY=";
};
};
nativeBuildInputs = [
installShellFiles
perl
];
buildInputs = lib.optionals stdenv.isDarwin [
libiconv
Security
];
postInstall = ''
installManPage ${pname}.1
'';
meta = with lib; {
description = "The fastest and cross-platform subdomain enumerator";
homepage = "https://github.com/Edu4rdSHL/findomain";
changelog = "https://github.com/Findomain/Findomain/releases/tag/${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ Br1ght0ne ];
};
}