Unverified Commit 4c46ba64 authored by Matt Sturgeon's avatar Matt Sturgeon Committed by GitHub
Browse files

jxscout: init at 0.9.4 (#490238)

parents 00922ed1 3690c3a9
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -13885,6 +13885,13 @@
    matrix = "@katexochen:matrix.org";
    name = "Paul Meyer";
  };
  katok = {
    name = "katok";
    email = "kat.ok.timofey@gmail.com";
    matrix = "@kat.ok:matrix.org";
    github = "Hi-Timofey";
    githubId = 43324422;
  };
  katrinafyi = {
    name = "katrinafyi";
    github = "katrinafyi";
+50 −0
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  fetchFromGitHub,
  makeWrapper,
  prettier,
  bun,
  nodejs,
}:

buildGoModule (finalAttrs: {
  pname = "jxscout";
  version = "0.9.4";

  src = fetchFromGitHub {
    owner = "francisconeves97";
    repo = "jxscout";
    tag = "v${finalAttrs.version}";
    hash = "sha256-DvvhcnjBHRHUEW5mWHLa7ufC+7yzYwKKOV79Syk5zME=";
  };

  subPackages = [ "cmd/jxscout" ];

  vendorHash = null;

  nativeBuildInputs = [ makeWrapper ];

  doCheck = true;

  postInstall = ''
    wrapProgram $out/bin/jxscout --prefix PATH : ${
      lib.makeBinPath [
        prettier
        bun
        nodejs
      ]
    }
  '';

  meta = {
    description = "jxscout superpowers JavaScript analysis for security researchers (free version)";
    homepage = "https://jxscout.app/";
    downloadPage = "https://github.com/francisconeves97/jxscout";
    changelog = "https://github.com/francisconeves97/jxscout/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.gpl3Plus;
    mainProgram = "jxscout";
    maintainers = with lib.maintainers; [ katok ];
    platforms = lib.platforms.linux ++ lib.platforms.darwin ++ lib.platforms.windows;
  };
})