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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.4 KiB
Nix
Raw Permalink Normal View History

{ lib
2019-12-30 12:56:03 +00:00
, rustPlatform
, fetchFromGitHub
2019-12-30 12:56:03 +00:00
, installShellFiles
, pkg-config
, openssl
, stdenv
2023-09-25 14:21:33 +00:00
, darwin
2019-12-30 12:56:03 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "findomain";
version = "9.0.3";
2019-12-30 12:56:03 +00:00
src = fetchFromGitHub {
owner = "findomain";
2019-12-30 12:56:03 +00:00
repo = pname;
2023-02-04 19:58:10 +00:00
rev = "refs/tags/${version}";
hash = "sha256-M6i62JI4HjaM0C2rSK8P5O19JeugFP5xIy1E6vE8KP4=";
2019-12-30 12:56:03 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"fhc-0.7.1" = "sha256-gSAwpuVL+5vLkHTsh60qyza7IoxgUWBQcWl2N7md51s=";
"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=";
};
};
2019-12-30 12:56:03 +00:00
2023-02-04 19:58:10 +00:00
nativeBuildInputs = [
installShellFiles
pkg-config
2023-02-04 19:58:10 +00:00
];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
2023-09-25 14:21:33 +00:00
darwin.apple_sdk.frameworks.SystemConfiguration
2023-02-04 19:58:10 +00:00
];
2019-12-30 12:56:03 +00:00
env = {
OPENSSL_NO_VENDOR = true;
};
2019-12-30 12:56:03 +00:00
postInstall = ''
installManPage findomain.1
2019-12-30 12:56:03 +00:00
'';
meta = with lib; {
description = "The fastest and cross-platform subdomain enumerator";
homepage = "https://github.com/Findomain/Findomain";
2023-02-04 19:58:10 +00:00
changelog = "https://github.com/Findomain/Findomain/releases/tag/${version}";
2021-03-20 22:08:39 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ Br1ght0ne figsoda ];
2024-02-11 02:19:15 +00:00
mainProgram = "findomain";
2019-12-30 12:56:03 +00:00
};
}