add micro-agent

This commit is contained in:
Dmitriy Pleshevskiy 2024-08-16 01:37:26 +03:00
parent 15596fc12d
commit 4dca932223
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
2 changed files with 23 additions and 1 deletions

View file

@ -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" ];
}

View file

@ -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 = {