ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / di / dirstalk / package.nix
blobd0cdc4b4813495eb1cafe79b40c2dd203fa10084
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 , fetchpatch
5 }:
7 buildGoModule rec {
8   pname = "dirstalk";
9   version = "1.3.3";
11   src = fetchFromGitHub {
12     owner = "stefanoj3";
13     repo = pname;
14     rev = version;
15     hash = "sha256-gSMkTGzMDI+scG3FQ0u0liUDL4qOPPW2UWLlAQcmmaA=";
16   };
18   patches = [
19     # update dependencies to fix darwin build - remove in next release
20     (fetchpatch {
21       url = "https://github.com/stefanoj3/dirstalk/commit/79aef14c5c048f3a3a8374f42c7a0d52fc9f7b50.patch";
22       sha256 = "sha256-2rSrMowfYdKV69Yg2QBzam3WOwGrSHQB+3uVi1Z2oJ8=";
23     })
24   ];
26   vendorHash = "sha256-XY4vIh5de0tp4KPXTpzTm7/2bDisTjCsojLzxVDf4Jw=";
28   subPackages = "cmd/dirstalk";
30   ldflags = [
31     "-w"
32     "-s"
33     "-X github.com/stefanoj3/dirstalk/pkg/cmd.Version=${version}"
34   ];
36   # Tests want to write to the root directory
37   doCheck = false;
39   meta = with lib; {
40     description = "Tool to brute force paths on web servers";
41     mainProgram = "dirstalk";
42     homepage = "https://github.com/stefanoj3/dirstalk";
43     license = licenses.mit;
44     maintainers = with maintainers; [ fab ];
45   };