`buildDotnetModule`: add support for installing pre-release tools (#374663)
[NixPkgs.git] / pkgs / development / python-modules / semgrep / common.nix
blobd51853953bf42fd5af5947990919bea15d5193ed
1 { lib }:
3 rec {
4   version = "1.74.0";
6   srcHash = "sha256-PH0fTT6n6o3Jtuq+cyyRb048Tuv3VGNduCZCEKTXMrE=";
8   # submodule dependencies
9   # these are fetched so we:
10   #   1. don't fetch the many submodules we don't need
11   #   2. avoid fetchSubmodules since it's prone to impurities
12   submodules = {
13     "cli/src/semgrep/semgrep_interfaces" = {
14       owner = "semgrep";
15       repo = "semgrep-interfaces";
16       rev = "9f38254957c50c68ea402eebae0f7aa40dd01cbf";
17       hash = "sha256-/P8b7nSwNZSrm7dUFkehDaGz+r+bofrlFfuIo4U7tJM=";
18     };
19   };
21   # fetch pre-built semgrep-core since the ocaml build is complex and relies on
22   # the opam package manager at some point
23   # pulling it out of the python wheel as r2c no longer release a built binary
24   # on github releases
25   core = {
26     x86_64-linux = {
27       platform = "any";
28       hash = "sha256-ZA5KlbSLkC0IJGqyK0XhuDKRx53987vf53vSM0zwD9k=";
29     };
30     aarch64-linux = {
31       platform = "musllinux_1_0_aarch64.manylinux2014_aarch64";
32       hash = "sha256-aHq87uzk9TtnlMDfAS6492ocXRJSHdBinng0hu2xLas=";
33     };
34     x86_64-darwin = {
35       platform = "macosx_10_14_x86_64";
36       hash = "sha256-OorDXQ0oYHV8aPu9o1dQAd22u78/EjpUWA2yPYG0S9E=";
37     };
38     aarch64-darwin = {
39       platform = "macosx_11_0_arm64";
40       hash = "sha256-g8sFLh2V9NDIvAZOaDhMpFxKqbS/S1eKep4v1vlOOo8=";
41     };
42   };
44   meta = with lib; {
45     homepage = "https://semgrep.dev/";
46     downloadPage = "https://github.com/semgrep/semgrep/";
47     changelog = "https://github.com/semgrep/semgrep/blob/v${version}/CHANGELOG.md";
48     description = "Lightweight static analysis for many languages";
49     longDescription = ''
50       Semgrep is a fast, open-source, static analysis tool for finding bugs and
51       enforcing code standards at editor, commit, and CI time. Semgrep analyzes
52       code locally on your computer or in your build environment: code is never
53       uploaded. Its rules look like the code you already write; no abstract
54       syntax trees, regex wrestling, or painful DSLs.
55     '';
56     license = licenses.lgpl21Plus;
57     maintainers = with maintainers; [ jk ambroisie ];
58   };