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

37 lines
807 B
Nix
Raw Normal View History

2019-12-30 13:56:03 +01:00
{ stdenv
, lib
, fetchFromGitHub
, rustPlatform
, installShellFiles
, perl
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "findomain";
2020-09-23 02:45:25 +02:00
version = "2.1.3";
2019-12-30 13:56:03 +01:00
src = fetchFromGitHub {
owner = "Edu4rdSHL";
repo = pname;
rev = version;
2020-09-23 02:45:25 +02:00
sha256 = "112w4x79zywy6i5vfr04057p9vschflhdhs7b2mhkcba5gigkrxx";
2019-12-30 13:56:03 +01:00
};
2020-09-23 02:45:25 +02:00
cargoSha256 = "1bfbg5fzwp8drm0vp16503qd5mgjfw7z9p292xgdx0i20s4wfrkk";
2019-12-30 13:56:03 +01:00
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.gpl3;
maintainers = with maintainers; [ filalex77 ];
};
}