Skip to content

Commit

Permalink
Onboard remaing Community Edition plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
tobim committed Feb 9, 2023
1 parent 2455c24 commit e11a703
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 8 deletions.
4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 62,8 @@
packages = flake-utils.lib.flattenTree {
vast = pkgs.vast;
vast-static = pkgs.pkgsStatic.vast;
vast-ce = pkgs.vast.withPlugins (ps: [ps.compaction]);
vast-ce-static = pkgs.pkgsStatic.vast.withPlugins (ps: [ps.compaction]);
vast-ce = pkgs.vast-ce;
vast-ce-static = pkgs.pkgsStatic.vast-ce;
vast-integration-test-shell = pkgs.mkShell {
packages = pkgs.vast-integration-test-deps;
};
Expand Down
4 changes: 4 additions & 0 deletions nix/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 206,10 @@ in {
# https://github.com/NixOS/nixpkgs/issues/130963
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-lc abi";
});
vast-ce = final.vast.withPlugins (ps: [
ps.matcher
ps.netflow
]);
vast-integration-test-deps = let
py3 = prev.python3.withPackages (ps:
with ps; [
Expand Down
16 changes: 15 additions & 1 deletion nix/vast/plugins/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 2,19 @@
source = builtins.fromJSON (builtins.readFile ./source.json);
vast-plugins = builtins.fetchGit source;
in {
compaction = callPackage ./compaction.nix {inherit vast-plugins;};
compaction = callPackage ./generic.nix {
pname = "compaction";
version = "1.4.0";
src = "${vast-plugins}/compaction";
};
matcher = callPackage ./generic.nix {
pname = "matcher";
version = "3.0.0";
src = "${vast-plugins}/matcher";
};
netflow = callPackage ./generic.nix {
pname = "netflow";
version = "1.0.0";
src = "${vast-plugins}/netflow";
};
}
Original file line number Diff line number Diff line change
@@ -1,15 1,14 @@
{
lib,
stdenv,
vast-plugins,
pname,
version,
src,
cmake,
vast,
}:
stdenv.mkDerivation {
pname = "vast-plugin-compaction";
version = "1.4.0";

src = "${vast-plugins}/compaction";
inherit pname version src;

nativeBuildInputs = [cmake];
buildInputs = [vast];
Expand Down

0 comments on commit e11a703

Please sign in to comment.