Unverified Commit 33ba2e12 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #226494 from figsoda/findomain

findomain: 8.2.2 -> 9.0.0, add figsoda as a maintainer
parents 9a88d865 866378da
Loading
Loading
Loading
Loading
+379 −243

File changed.

Preview size limit exceeded, changes collapsed.

+19 −14
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitHub
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
, perl
, libiconv
, pkg-config
, openssl
, stdenv
, Security
}:

rustPlatform.buildRustPackage rec {
  pname = "findomain";
  version = "8.2.2";
  version = "9.0.0";

  src = fetchFromGitHub {
    owner = "Edu4rdSHL";
    owner = "findomain";
    repo = pname;
    rev = "refs/tags/${version}";
    hash = "sha256-9mtXtBq08lL6qQg1Pq1WNwbkG0yi99mCpxNuBvr14ms=";
    hash = "sha256-xiy4HiKgUW7U3GCjR5ZxPHILpDxG6xsADCAzGraqOPc=";
  };

  cargoLock = {
@@ -31,23 +31,28 @@ rustPlatform.buildRustPackage rec {

  nativeBuildInputs = [
    installShellFiles
    perl
    pkg-config
  ];

  buildInputs = lib.optionals stdenv.isDarwin [
    libiconv
  buildInputs = [
    openssl
  ] ++ lib.optionals stdenv.isDarwin [
    Security
  ];

  env = {
    OPENSSL_NO_VENDOR = true;
  };

  postInstall = ''
    installManPage ${pname}.1
    installManPage findomain.1
  '';

  meta = with lib; {
    description = "The fastest and cross-platform subdomain enumerator";
    homepage = "https://github.com/Edu4rdSHL/findomain";
    homepage = "https://github.com/Findomain/Findomain";
    changelog = "https://github.com/Findomain/Findomain/releases/tag/${version}";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ Br1ght0ne ];
    maintainers = with maintainers; [ Br1ght0ne figsoda ];
  };
}