stdenv: fix documentation for stripAllFlags and stripDebugFlags (#352127)
[NixPkgs.git] / pkgs / by-name / cd / cdncheck / package.nix
blobb18d0625a29155f30f58a8bea2be72f1a26e2f90
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5 }:
7 buildGoModule rec {
8   pname = "cdncheck";
9   version = "1.1.0";
11   src = fetchFromGitHub {
12     owner = "projectdiscovery";
13     repo = "cdncheck";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-1TYUSWbcWnRsOM8ctY1g9CmFSAXiK9NmN5ZDaKeJIgw=";
16   };
18   vendorHash = "sha256-0fiZJeBvxUib8a9CeTmYottOp+15YEdTVYhdzKSSCrk=";
20   subPackages = [ "cmd/cdncheck/" ];
22   ldflags = [
23     "-s"
24     "-w"
25   ];
27   preCheck = ''
28     # Tests require network access
29     substituteInPlace other_test.go \
30       --replace-fail "TestCheckDomainWithFallback" "SkipTestCheckDomainWithFallback" \
31       --replace-fail "TestCheckDNSResponse" "SkipTestCheckDNSResponse"
32   '';
34   meta = with lib; {
35     description = "Tool to detect various technology for a given IP address";
36     homepage = "https://github.com/projectdiscovery/cdncheck";
37     changelog = "https://github.com/projectdiscovery/cdncheck/releases/tag/v${version}";
38     license = licenses.mit;
39     maintainers = with maintainers; [ fab ];
40     mainProgram = "cdncheck";
41   };