From 4dca932223b2f490452d4e631479c5f83afc1c38 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 16 Aug 2024 01:37:26 +0300 Subject: [PATCH] add micro-agent --- packages/micro-agent/default.nix | 20 ++++++++++++++++++++ users/jan/default.nix | 4 +++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 packages/micro-agent/default.nix diff --git a/packages/micro-agent/default.nix b/packages/micro-agent/default.nix new file mode 100644 index 0000000..7020be2 --- /dev/null +++ b/packages/micro-agent/default.nix @@ -0,0 +1,20 @@ +{ buildNpmPackage, fetchFromGitHub }: + +# https://github.com/BuilderIO/micro-agent +buildNpmPackage rec { + pname = "micro-agent"; + version = "0.0.41"; + + src = fetchFromGitHub { + owner = "BuilderIO"; + repo = "micro-agent"; + rev = "v${version}"; + hash = "sha256-NxnK8MgKPTZVIADd03fJ6egUWq5vgVxkOvqaD/T/12w="; + }; + + npmDepsHash = "sha256-exIqyldG5dcUt1xoVLQw/FLOOqfIpG44i3fdzG4cyvM="; + + NODE_OPTIONS = "--openssl-legacy-provider"; + + npmFlags = [ "--ignore-scripts" ]; +} diff --git a/users/jan/default.nix b/users/jan/default.nix index 6eb996c..e5a718d 100644 --- a/users/jan/default.nix +++ b/users/jan/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, inputs, globalData, ... }: +{ config, pkgs, lib, inputs, globalData, packagesPath, ... }: { imports = [./davmail.secret.nix]; @@ -161,6 +161,8 @@ jq nodePackages.vscode-langservers-extracted # html, css, json, eslint + + (pkgs.callPackage (packagesPath + /micro-agent) {}) ]; home.file = {