about summary refs log tree commit diff
path: root/pkgs/by-name/gr/graphqlmaker/package.nix
blob: 265b63112dfe5a345f4adf8984078a19b25ed96c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:

buildGoModule rec {
  pname = "graphqlmaker";
  version = "0-unstable-2024-05-18";

  src = fetchFromGitHub {
    owner = "xssdoctor";
    repo = "graphqlMaker";
    rev = "ff884ce39156d8458da35c0b0b5d7eb1e1146bb5";
    hash = "sha256-H3AFCS1WoeVXUdXBV1JKrGIraJP/ql6XG++PxmWUico=";
  };

  vendorHash = "sha256-1mDOqTsQ3kHs3MEWlRcdqhjIRul7um2mfBAxObhoSlE=";

  ldflags = [
    "-s"
    "-w"
  ];

  meta = with lib; {
    description = "Tool to find graphql queries in Javascript files";
    homepage = "https://github.com/xssdoctor/graphqlMaker";
    # https://github.com/xssdoctor/graphqlMaker/issues/1
    license = licenses.unfree;
    maintainers = with maintainers; [ fab ];
    mainProgram = "graphqlMaker";
  };
}