evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / fi / findomain / package.nix
blob7fed4c99daae22c8fa71ea4b1d2a72e6641bc9f2
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , installShellFiles
5 , pkg-config
6 , openssl
7 , stdenv
8 , darwin
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "findomain";
13   version = "9.0.3";
15   src = fetchFromGitHub {
16     owner = "findomain";
17     repo = pname;
18     rev = "refs/tags/${version}";
19     hash = "sha256-M6i62JI4HjaM0C2rSK8P5O19JeugFP5xIy1E6vE8KP4=";
20   };
22   cargoLock = {
23     lockFile = ./Cargo.lock;
24     outputHashes = {
25       "fhc-0.7.1" = "sha256-gSAwpuVL+5vLkHTsh60qyza7IoxgUWBQcWl2N7md51s=";
26       "headless_chrome-0.9.0" = "sha256-0BMm0tmCbUL1BSdD6rJLG735FYJsmkSrPQBs2zWx414=";
27       "rusolver-0.9.1" = "sha256-84qe/A+FN8Q+r8tk0waOq+sBgnDpG9bwoQI+K5pE4Wc=";
28       "trust-dns-proto-0.20.4" = "sha256-+oAjyyTXbKir8e5kn8CUmQy5qmzQ47ryvBBdZtzj1TY=";
29     };
30   };
32   nativeBuildInputs = [
33     installShellFiles
34     pkg-config
35   ];
37   buildInputs = [
38     openssl
39   ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
40     darwin.apple_sdk.frameworks.SystemConfiguration
41   ];
43   env = {
44     OPENSSL_NO_VENDOR = true;
45   };
47   postInstall = ''
48     installManPage findomain.1
49   '';
51   meta = with lib; {
52     description = "Fastest and cross-platform subdomain enumerator";
53     homepage = "https://github.com/Findomain/Findomain";
54     changelog = "https://github.com/Findomain/Findomain/releases/tag/${version}";
55     license = licenses.gpl3Plus;
56     maintainers = with maintainers; [ Br1ght0ne figsoda ];
57     mainProgram = "findomain";
58   };