Compare commits

..

2 commits

Author SHA1 Message Date
4dca932223
add micro-agent 2024-08-16 01:37:26 +03:00
15596fc12d
make: verbose logs when build system 2024-08-16 01:37:11 +03:00
3 changed files with 25 additions and 3 deletions

View file

@ -33,12 +33,12 @@ define machine_rule
.PHONY: $(1)
$(1): ;
# systemctl --user reset-failed
sudo nix run $(NIX_ARGS) .#switch/$(1) -- $(BUILD_ARGS)
sudo nix run -L $(NIX_ARGS) .#switch/$(1) -- $(BUILD_ARGS)
endef
define vps_rule
.PHONY: $(1)
$(1): ; nix run .#deploy/$(1) -- $(BUILD_ARGS)
$(1): ; nix run -L .#deploy/$(1) -- $(BUILD_ARGS)
endef

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