python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / security / exploitdb / default.nix
blob74ba577a6dc582f4558b0f92117569e6085cea67
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , makeWrapper
5 }:
7 stdenv.mkDerivation rec {
8   pname = "exploitdb";
9   version = "2022-10-18";
11   src = fetchFromGitHub {
12     owner = "offensive-security";
13     repo = pname;
14     rev = "refs/tags/${version}";
15     hash = "sha256-qyRAwy4rGaV7fiU0gwvnf6yT4ZAAXYTtZubh+GtsJU8=";
16   };
18   nativeBuildInputs = [
19     makeWrapper
20   ];
22   installPhase = ''
23     runHook preInstall
24     mkdir -p $out/bin $out/share
25     cp --recursive . $out/share/exploitdb
26     makeWrapper $out/share/exploitdb/searchsploit $out/bin/searchsploit
27     runHook postInstall
28   '';
30   meta = with lib; {
31     homepage = "https://github.com/offensive-security/exploitdb";
32     description = "Archive of public exploits and corresponding vulnerable software";
33     license = with licenses; [ gpl2Plus gpl3Plus mit ];
34     maintainers = with maintainers; [ applePrincess fab ];
35     mainProgram = "searchsploit";
36   };