Compare commits
18
Commits
1c46b2bcc5
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d8dea9f61 | ||
|
|
1610361eec | ||
|
|
fed965262b | ||
|
|
28a7ab59eb | ||
|
|
8972d0ec09 | ||
|
|
566bd047da | ||
|
|
04b710cc9b | ||
|
|
6919862acb | ||
|
|
f06bad7656 | ||
|
|
d37c3fa1d9 | ||
|
|
f2b7a0eab0 | ||
|
|
f243ea2de0 | ||
|
|
c06dbcd553 | ||
|
|
f53130489e | ||
|
|
919264cca8 | ||
|
|
0031c21701 | ||
|
|
1fa50fe47a | ||
|
|
4a047cb3be |
No files matched your search
@@ -82,3 +82,14 @@ bd close <id> # Complete work
|
|||||||
- NEVER say "ready to push when you are" - YOU must push
|
- NEVER say "ready to push when you are" - YOU must push
|
||||||
- If push fails, resolve and retry until it succeeds
|
- If push fails, resolve and retry until it succeeds
|
||||||
<!-- END BEADS INTEGRATION -->
|
<!-- END BEADS INTEGRATION -->
|
||||||
|
|
||||||
|
<!-- BEGIN PM-PROJEKTLANDSCHAFT -->
|
||||||
|
## Projektlandschaft
|
||||||
|
|
||||||
|
Dieses Repo ist eines von mehreren Projekten unter `~/ap`. Die Gesamtübersicht (Zweck, Remotes, Abhängigkeiten aller Repos) und das OKF-Wissensbündel liegen im privaten PM-Repo (`~/ap/PM/CLAUDE.md`, `~/ap/PM/.okf/`); das Konzept zu diesem Repo ist `.okf/systems/m3ta-nixpkgs.md`. Ist das PM-Repo nicht vorhanden, diesen Abschnitt ignorieren. Ändern sich Zweck, Schnittstellen oder Abhängigkeiten dieses Repos, dort das Konzept aktualisieren und `.okf/log.md` ergänzen.
|
||||||
|
|
||||||
|
Direkte Abhängigkeiten:
|
||||||
|
|
||||||
|
- Paketiert u. a. `agent-lib` und `talk` (eigene Repos unter `~/ap`): nach deren Releases Version und Hash nachziehen.
|
||||||
|
- Hauptkonsument ist `m3ta-home`.
|
||||||
|
<!-- END PM-PROJEKTLANDSCHAFT -->
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
# CLAUDE.md
|
||||||
|
|
||||||
|
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
||||||
|
|
||||||
|
@AGENTS.md
|
||||||
Generated
+18
-19
@@ -23,16 +23,15 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1785979955,
|
"lastModified": 1794331471,
|
||||||
"narHash": "sha256-OP96Ak4OBydR98keoNYKdGY8j+wrIys0LafSZgwS20g=",
|
"narHash": "sha256-8aVBqyJ4OjR8EKDZqHL+Ru+s0pREGww0rRy7NEzoffo=",
|
||||||
"owner": "basecamp",
|
"owner": "basecamp",
|
||||||
"repo": "basecamp-cli",
|
"repo": "basecamp-cli",
|
||||||
"rev": "61a5591de1da9bc99c56b8072a4d6bad2c9b9e47",
|
"rev": "5438c38064f5e7040fd5731e80e02c3852b2bdaf",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "basecamp",
|
"owner": "basecamp",
|
||||||
"ref": "v0.9.0",
|
|
||||||
"repo": "basecamp-cli",
|
"repo": "basecamp-cli",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
@@ -46,11 +45,11 @@
|
|||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792485075,
|
"lastModified": 1794299076,
|
||||||
"narHash": "sha256-o04WvscL+MhtarpbluifQZLA6lIP3B0g6NDUWaM/asc=",
|
"narHash": "sha256-rCI/5+vZQJLra+5SKib2zReO/XcXpAW/5bNDKm3AyNc=",
|
||||||
"owner": "mulatta",
|
"owner": "mulatta",
|
||||||
"repo": "buzz.nix",
|
"repo": "buzz.nix",
|
||||||
"rev": "22a9f566d21317181b4b40601570e81a02ff2d8c",
|
"rev": "998a22a0cb53d7059ba7cd34bbcb5630a7f56413",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -61,11 +60,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792502884,
|
"lastModified": 1794042290,
|
||||||
"narHash": "sha256-IoNisKcGbUjdd45qCqywGMCYmZ5EnkxezvLII0FWwNA=",
|
"narHash": "sha256-ziZn2PvCJE5JEEpqTdxXwJpPB+L3YqoCpTAMCzyaP3U=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "02c087f3fe673c9e317f206a627cb6b910336dbe",
|
"rev": "f4a03c008967841f2a0b3cb7c436fc6fc31671f6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -77,11 +76,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-master": {
|
"nixpkgs-master": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792653584,
|
"lastModified": 1794335277,
|
||||||
"narHash": "sha256-vniEjRZ2skWqpreoaSJt7MCXDc/uZI/+ZDdLSa1/h6I=",
|
"narHash": "sha256-SRTUuRAa5hCaEbrxCSAkjbUC8mpwVl3OjdIS2ZmvpLw=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "6c21ae394d8839a9d4cad6e2fb2f312ebef0447b",
|
"rev": "36c6a8ac3d1a5d1d1d899661b97f6551a2b94ca7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -112,11 +111,11 @@
|
|||||||
"nixpkgs": "nixpkgs_2"
|
"nixpkgs": "nixpkgs_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792644899,
|
"lastModified": 1794335094,
|
||||||
"narHash": "sha256-ub192yT1SwxVyf2DHKW34xHJnL/LXRi2jm1IFyZMkqQ=",
|
"narHash": "sha256-vjuZMwJgtDx4Bjv4Sd6FPP1ZEhrlLfdQPB//+zaZorM=",
|
||||||
"owner": "anomalyco",
|
"owner": "anomalyco",
|
||||||
"repo": "opencode",
|
"repo": "opencode",
|
||||||
"rev": "c93aaae37157d785f76a8e9a9243a6560e286468",
|
"rev": "a11e57823540db9b00f0c1ff2bd4e86cb856a434",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -144,11 +143,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1792219666,
|
"lastModified": 1793956102,
|
||||||
"narHash": "sha256-RMO08tKD+hFIL5ryWi85VY4aHE5oIpdV1h4kVFctOkw=",
|
"narHash": "sha256-dASUovwB3DUoTm6daga0hsNZZAFCCGlUS4FPBjK0OwA=",
|
||||||
"owner": "oxalica",
|
"owner": "oxalica",
|
||||||
"repo": "rust-overlay",
|
"repo": "rust-overlay",
|
||||||
"rev": "a110337465cfb76e3806b81b9db3094c3e6e770a",
|
"rev": "74cebce67ef6671ea48fda353a5be2d229bd2920",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
|
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
|
||||||
|
|
||||||
basecamp = {
|
basecamp = {
|
||||||
url = "github:basecamp/basecamp-cli/v0.9.0";
|
url = "github:basecamp/basecamp-cli";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -30,23 +30,46 @@
|
|||||||
...
|
...
|
||||||
} @ inputs: let
|
} @ inputs: let
|
||||||
# Supported systems
|
# Supported systems
|
||||||
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
|
systems = ["x86_64-linux" "aarch64-linux" "aarch64-darwin"];
|
||||||
|
|
||||||
# Helper function to generate an attrset for each of the systems
|
# Helper function to generate an attrset for each of the systems
|
||||||
forAllSystems = nixpkgs.lib.genAttrs systems;
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
||||||
|
|
||||||
|
# Only expose packages whose meta.platforms include the system
|
||||||
|
# (e.g. mem0 is Linux-only), so `nix flake check --all-systems` passes.
|
||||||
|
supportedOn = pkgs:
|
||||||
|
nixpkgs.lib.filterAttrs (_: nixpkgs.lib.meta.availableOn pkgs.stdenv.hostPlatform);
|
||||||
|
|
||||||
# Helper to create pkgs for a given system
|
# Helper to create pkgs for a given system
|
||||||
pkgsFor = system:
|
pkgsFor = system:
|
||||||
import nixpkgs {
|
import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
|
overlays = [fabricInvoke3];
|
||||||
|
};
|
||||||
|
|
||||||
|
# nixpkgs marks fabric broken: it pins invoke<3 and its tests fail with
|
||||||
|
# invoke 3, but the library imports and connects fine. Needed by
|
||||||
|
# azure-cli in the devops shell.
|
||||||
|
fabricInvoke3 = _: prev: {
|
||||||
|
pythonPackagesExtensions =
|
||||||
|
prev.pythonPackagesExtensions
|
||||||
|
++ [
|
||||||
|
(_: pyPrev: {
|
||||||
|
fabric = pyPrev.fabric.overridePythonAttrs (old: {
|
||||||
|
doCheck = false;
|
||||||
|
pythonRelaxDeps = ["invoke"];
|
||||||
|
meta = old.meta // {broken = false;};
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
# Custom packages - accessible via 'nix build .#package-name'
|
# Custom packages - accessible via 'nix build .#package-name'
|
||||||
packages = forAllSystems (system: let
|
packages = forAllSystems (system: let
|
||||||
pkgs = pkgsFor system;
|
pkgs = pkgsFor system;
|
||||||
in
|
in
|
||||||
import ./pkgs {inherit pkgs inputs;});
|
supportedOn pkgs (import ./pkgs {inherit pkgs inputs;}));
|
||||||
|
|
||||||
# Overlays - can be imported in your system configuration
|
# Overlays - can be imported in your system configuration
|
||||||
overlays = import ./overlays {inherit inputs;};
|
overlays = import ./overlays {inherit inputs;};
|
||||||
@@ -88,7 +111,7 @@
|
|||||||
# Checks for 'nix flake check' - verifies all packages build
|
# Checks for 'nix flake check' - verifies all packages build
|
||||||
checks = forAllSystems (system: let
|
checks = forAllSystems (system: let
|
||||||
pkgs = pkgsFor system;
|
pkgs = pkgsFor system;
|
||||||
packages = import ./pkgs {inherit pkgs inputs;};
|
packages = supportedOn pkgs (import ./pkgs {inherit pkgs inputs;});
|
||||||
in
|
in
|
||||||
builtins.mapAttrs (name: pkg: pkgs.lib.hydraJob pkg) packages
|
builtins.mapAttrs (name: pkg: pkgs.lib.hydraJob pkg) packages
|
||||||
// {
|
// {
|
||||||
|
|||||||
+72
-3
@@ -29,18 +29,59 @@
|
|||||||
# ERR_PNPM_INCONSISTENT_PATCH_HASH. Rewrite the stale references to the
|
# ERR_PNPM_INCONSISTENT_PATCH_HASH. Rewrite the stale references to the
|
||||||
# declared hash — exactly what `pnpm install --no-frozen-lockfile` would
|
# declared hash — exactly what `pnpm install --no-frozen-lockfile` would
|
||||||
# converge to. The sed is a no-op once upstream regenerates the lockfile.
|
# converge to. The sed is a no-op once upstream regenerates the lockfile.
|
||||||
|
#
|
||||||
|
# n8n@2.47.3 has the same class of defect again: the override
|
||||||
|
# `undici@7: catalog:undici-v7` was bumped to ^7.30.1 and the package entry
|
||||||
|
# undici@7.29.1 dropped from the lockfile, but the snapshot of
|
||||||
|
# @ai-sdk/provider-utils@5.0.70 (added via minimumReleaseAgeExclude) still
|
||||||
|
# lists `undici: 7.29.1`. pnpm >= 12.9 refuses with
|
||||||
|
# ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY ("no entry for 'undici@7.29.1'").
|
||||||
|
# Point the stale reference at the entry that exists (7.30.1), which is
|
||||||
|
# exactly where the override resolves it anyway. No-op on clean lockfiles.
|
||||||
fixUpstreamLockfile = ''
|
fixUpstreamLockfile = ''
|
||||||
sed -i 's/patch_hash=81ead1b07fc8efda87bd2724dbd876ab49f4a0aa03f96c3770060b2ea47d9e0b/patch_hash=0384abb0bf57b0811e09219dbce0b926741d818285ee77526ad4cb75a60b87a1/g' pnpm-lock.yaml
|
sed -i 's/patch_hash=81ead1b07fc8efda87bd2724dbd876ab49f4a0aa03f96c3770060b2ea47d9e0b/patch_hash=0384abb0bf57b0811e09219dbce0b926741d818285ee77526ad4cb75a60b87a1/g' pnpm-lock.yaml
|
||||||
|
sed -i -E 's/^(\s+undici: )7\.29\.1$/\17.30.1/' pnpm-lock.yaml
|
||||||
|
'';
|
||||||
|
|
||||||
|
# After `pnpm prune --prod` (pnpm 12), walk every workspace package and
|
||||||
|
# restore each peerDependency that is no longer linked in its node_modules
|
||||||
|
# from the hoisted copy in node_modules/.pnpm/node_modules (see the
|
||||||
|
# preInstall comment below). Links are relative so they survive the move
|
||||||
|
# into $out. Peers with no hoisted copy (e.g. n8n-workflow in the node-cli
|
||||||
|
# templates) are left alone — they were never linked before either.
|
||||||
|
relinkPrunedPeers = ''
|
||||||
|
echo "Re-linking peer dependencies dropped by pnpm prune"
|
||||||
|
find packages -name node_modules -prune -o -name package.json -type f -print \
|
||||||
|
| node -e '
|
||||||
|
const fs = require("fs"), path = require("path");
|
||||||
|
const hoisted = path.resolve("node_modules/.pnpm/node_modules");
|
||||||
|
let relinked = 0;
|
||||||
|
for (const pkgJson of fs.readFileSync(0, "utf8").split("\n").filter(Boolean)) {
|
||||||
|
let pkg;
|
||||||
|
try { pkg = JSON.parse(fs.readFileSync(pkgJson, "utf8")); } catch { continue; }
|
||||||
|
const pkgDir = path.dirname(pkgJson);
|
||||||
|
for (const name of Object.keys(pkg.peerDependencies || {})) {
|
||||||
|
const link = path.join(pkgDir, "node_modules", name);
|
||||||
|
const target = path.join(hoisted, name);
|
||||||
|
if (fs.existsSync(link) || !fs.existsSync(target)) continue;
|
||||||
|
try { fs.unlinkSync(link); } catch {} // dangling leftover
|
||||||
|
fs.mkdirSync(path.dirname(link), { recursive: true });
|
||||||
|
fs.symlinkSync(path.relative(path.dirname(link), target), link);
|
||||||
|
relinked++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
console.log("Re-linked " + relinked + " pruned peer dependencies");
|
||||||
|
'
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
prev.n8n.overrideAttrs (finalAttrs: previousAttrs: {
|
prev.n8n.overrideAttrs (finalAttrs: previousAttrs: {
|
||||||
version = "2.45.5";
|
version = "2.47.7";
|
||||||
|
|
||||||
src = prev.fetchFromGitHub {
|
src = prev.fetchFromGitHub {
|
||||||
owner = "n8n-io";
|
owner = "n8n-io";
|
||||||
repo = "n8n";
|
repo = "n8n";
|
||||||
tag = "n8n@${finalAttrs.version}";
|
tag = "n8n@${finalAttrs.version}";
|
||||||
hash = "sha256-YPM8Hlgrll1I+yYj4Q2dWP8bF5nnLCF5VIMpl3N5Lzk=";
|
hash = "sha256-Q9C8hGBwUlXh00+snHUknSAPKySgUm8rwLmcZCuAHmQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pnpmDeps = prev.fetchPnpmDeps {
|
pnpmDeps = prev.fetchPnpmDeps {
|
||||||
@@ -48,7 +89,7 @@ in
|
|||||||
pnpm = prev.pnpm_12;
|
pnpm = prev.pnpm_12;
|
||||||
fetcherVersion = 4;
|
fetcherVersion = 4;
|
||||||
postPatch = relaxPnpmEngine + fixUpstreamLockfile;
|
postPatch = relaxPnpmEngine + fixUpstreamLockfile;
|
||||||
hash = "sha256-rZ3unYg6d0bAnU05e1ejGokIYKI1m7M97NiS+bqdZOE=";
|
hash = "sha256-np4qMhJJBwpEJA/Zac1WEueUmaufs2wLBaa1BUiBgcM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = (previousAttrs.postPatch or "") + relaxPnpmEngine + fixUpstreamLockfile;
|
postPatch = (previousAttrs.postPatch or "") + relaxPnpmEngine + fixUpstreamLockfile;
|
||||||
@@ -69,6 +110,34 @@ in
|
|||||||
else x)
|
else x)
|
||||||
previousAttrs.nativeBuildInputs;
|
previousAttrs.nativeBuildInputs;
|
||||||
|
|
||||||
|
# Upstream preInstall runs `pnpm prune --prod`. n8n >= 2.45 sets
|
||||||
|
# `minimumReleaseAge: 2880` in pnpm-workspace.yaml, and pnpm 12 enforces
|
||||||
|
# that supply-chain policy on prune by fetching registry metadata for every
|
||||||
|
# lockfile entry. In the network-less sandbox that stalls the build
|
||||||
|
# indefinitely right after "Removing non-deterministic and unnecessary
|
||||||
|
# files". The lockfile is fixed by pnpmDeps' hash anyway, so disable the
|
||||||
|
# check for prune and force --offline so any future registry access fails
|
||||||
|
# fast instead of hanging.
|
||||||
|
#
|
||||||
|
# pnpm 12 also changed what `prune --prod` keeps: a peerDependency that a
|
||||||
|
# workspace package only satisfies via its own devDependencies (n8n's
|
||||||
|
# convention for zod, pg, sqlite3, @langchain/core, …) is now dropped
|
||||||
|
# from that package's node_modules, whereas pnpm 11 kept the link. The
|
||||||
|
# packages are still in the store (other prod deps need them) and, with
|
||||||
|
# `hoist: true`, still linked from node_modules/.pnpm/node_modules — but
|
||||||
|
# Node's resolver never looks there, so n8n dies at startup with
|
||||||
|
# "Cannot find module 'zod'" from packages/workflow. Re-link every
|
||||||
|
# missing peer from the hoisted directory right after the prune.
|
||||||
|
preInstall =
|
||||||
|
builtins.replaceStrings
|
||||||
|
["CI=true pnpm --ignore-scripts prune --prod -w"]
|
||||||
|
[
|
||||||
|
''
|
||||||
|
CI=true pnpm --ignore-scripts --offline --config.minimum-release-age=0 prune --prod -w
|
||||||
|
${relinkPrunedPeers}''
|
||||||
|
]
|
||||||
|
previousAttrs.preInstall;
|
||||||
|
|
||||||
preBuild =
|
preBuild =
|
||||||
(previousAttrs.preBuild or "")
|
(previousAttrs.preBuild or "")
|
||||||
+ ''
|
+ ''
|
||||||
|
|||||||
@@ -9,14 +9,14 @@
|
|||||||
}:
|
}:
|
||||||
buildGoModule (finalAttrs: {
|
buildGoModule (finalAttrs: {
|
||||||
pname = "agent-lib";
|
pname = "agent-lib";
|
||||||
version = "0.2.0";
|
version = "0.3.0";
|
||||||
|
|
||||||
src = fetchFromGitea {
|
src = fetchFromGitea {
|
||||||
domain = "code.m3ta.dev";
|
domain = "code.m3ta.dev";
|
||||||
owner = "m3tam3re";
|
owner = "m3tam3re";
|
||||||
repo = "agent-lib";
|
repo = "agent-lib";
|
||||||
tag = "v${finalAttrs.version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-2FXxL7ubbvLYDFZLURtt0UZVZ0RaHTTTJcq7TxBtdqY=";
|
hash = "sha256-BM2CO2kL6HBTrKqu7DNAF8blV36nkmieDlooUaa0cjU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-92PSYpat2+rbHP9vu58tg7378tyxTGvwi7KtrYn7y+4=";
|
vendorHash = "sha256-92PSYpat2+rbHP9vu58tg7378tyxTGvwi7KtrYn7y+4=";
|
||||||
|
|||||||
+1
-1
@@ -62,7 +62,7 @@ in {
|
|||||||
# source — no third-party binary cache. First build is slow (Rust + Tauri
|
# source — no third-party binary cache. First build is slow (Rust + Tauri
|
||||||
# + sherpa-onnx); subsequent builds are cached in the local nix store.
|
# + sherpa-onnx); subsequent builds are cached in the local nix store.
|
||||||
# Note: mulatta only publishes packages for x86_64-linux, aarch64-linux,
|
# Note: mulatta only publishes packages for x86_64-linux, aarch64-linux,
|
||||||
# aarch64-darwin — x86_64-darwin will throw at build time.
|
# aarch64-darwin.
|
||||||
buzz-desktop = inputs.buzz.packages.${system}.buzz-desktop;
|
buzz-desktop = inputs.buzz.packages.${system}.buzz-desktop;
|
||||||
buzz = inputs.buzz.packages.${system}.buzz-desktop;
|
buzz = inputs.buzz.packages.${system}.buzz-desktop;
|
||||||
}
|
}
|
||||||
+10
-3
@@ -3,8 +3,15 @@
|
|||||||
nix-update-script,
|
nix-update-script,
|
||||||
python3,
|
python3,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
}:
|
}: let
|
||||||
python3.pkgs.buildPythonPackage rec {
|
# nixpkgs marks posthog broken because its test suite fails with mcp >= 2;
|
||||||
|
# the library itself works, so skip its tests instead.
|
||||||
|
posthog = python3.pkgs.posthog.overridePythonAttrs (old: {
|
||||||
|
doCheck = false;
|
||||||
|
meta = old.meta // {broken = false;};
|
||||||
|
});
|
||||||
|
in
|
||||||
|
python3.pkgs.buildPythonPackage rec {
|
||||||
pname = "mem0ai";
|
pname = "mem0ai";
|
||||||
version = "2.0.2";
|
version = "2.0.2";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
@@ -99,4 +106,4 @@ python3.pkgs.buildPythonPackage rec {
|
|||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
lib,
|
||||||
writeShellScriptBin,
|
writeShellScriptBin,
|
||||||
rofi,
|
rofi,
|
||||||
libnotify,
|
libnotify,
|
||||||
@@ -7,7 +8,9 @@
|
|||||||
gnused,
|
gnused,
|
||||||
jq,
|
jq,
|
||||||
}:
|
}:
|
||||||
writeShellScriptBin "rofi-project-opener" ''
|
# rofi and libnotify are Linux-only.
|
||||||
|
lib.addMetaAttrs {platforms = lib.platforms.linux;}
|
||||||
|
(writeShellScriptBin "rofi-project-opener" ''
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# rofi-project-opener - Rofi-based project directory launcher
|
# rofi-project-opener - Rofi-based project directory launcher
|
||||||
|
|
||||||
@@ -178,4 +181,4 @@ writeShellScriptBin "rofi-project-opener" ''
|
|||||||
cd '$project_path' && opencode $project_args
|
cd '$project_path' && opencode $project_args
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
''
|
'')
|
||||||
@@ -12,14 +12,14 @@
|
|||||||
}:
|
}:
|
||||||
buildGoModule (finalAttrs: {
|
buildGoModule (finalAttrs: {
|
||||||
pname = "talk";
|
pname = "talk";
|
||||||
version = "0.1.1";
|
version = "0.1.2";
|
||||||
|
|
||||||
src = fetchFromGitea {
|
src = fetchFromGitea {
|
||||||
domain = "code.m3ta.dev";
|
domain = "code.m3ta.dev";
|
||||||
owner = "m3tam3re";
|
owner = "m3tam3re";
|
||||||
repo = "talk";
|
repo = "talk";
|
||||||
tag = "v${finalAttrs.version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-1vmseIvcrEO5rg65zcsD96+tHvRdT0fJ3Bt66rNfHlQ=";
|
hash = "sha256-2goEKz/oMB/mfQpAiED+6iiAhCpOH9BbQlzsuFMjiYk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-8B1ubNy4sap3XV83lX93NvpH3z4BNloWgkM7OB4hglo=";
|
vendorHash = "sha256-8B1ubNy4sap3XV83lX93NvpH3z4BNloWgkM7OB4hglo=";
|
||||||
|
|||||||
@@ -6,12 +6,12 @@
|
|||||||
makeWrapper,
|
makeWrapper,
|
||||||
}: let
|
}: let
|
||||||
pname = "vibetyper";
|
pname = "vibetyper";
|
||||||
version = "1.6.4";
|
version = "1.6.5";
|
||||||
# Upstream publishes to an unversioned URL — ./update.sh watches Last-Modified
|
# Upstream publishes to an unversioned URL — ./update.sh watches Last-Modified
|
||||||
# and refreshes the sha256 when the binary changes. Bump `version` manually.
|
# and refreshes the sha256 when the binary changes. Bump `version` manually.
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://cdn.vibetyper.com/releases/linux/VibeTyper.AppImage";
|
url = "https://cdn.vibetyper.com/releases/linux/VibeTyper.AppImage";
|
||||||
sha256 = "sha256-Fxsnf4pmc/uctX2p7MYs0AOTv9iA3NfImaoi6WFxjws=";
|
sha256 = "sha256-Z0Jn3rLNfbb/8EnRWO+9xyIjCsyHmU3mBAOpw0ifUbI=";
|
||||||
};
|
};
|
||||||
appimageContents = appimageTools.extract {inherit pname version src;};
|
appimageContents = appimageTools.extract {inherit pname version src;};
|
||||||
in
|
in
|
||||||
@@ -20,7 +20,9 @@ in
|
|||||||
|
|
||||||
nativeBuildInputs = [makeWrapper];
|
nativeBuildInputs = [makeWrapper];
|
||||||
|
|
||||||
extraPkgs = pkgs: [pkgs.fuse2];
|
# The AppImage bundles libgcrypt.so.20 but not its dependency
|
||||||
|
# libgpg-error.so.0, which the FHS env does not provide.
|
||||||
|
extraPkgs = pkgs: [pkgs.libgpg-error];
|
||||||
|
|
||||||
extraInstallCommands = ''
|
extraInstallCommands = ''
|
||||||
# Upstream 1.6.0 renamed the desktop file to "Vibe Typer.desktop"
|
# Upstream 1.6.0 renamed the desktop file to "Vibe Typer.desktop"
|
||||||
|
|||||||
@@ -15,14 +15,21 @@
|
|||||||
modifiedPkgs = mkPkgs [self.overlays.modifications];
|
modifiedPkgs = mkPkgs [self.overlays.modifications];
|
||||||
defaultPkgs = mkPkgs [self.overlays.default];
|
defaultPkgs = mkPkgs [self.overlays.default];
|
||||||
|
|
||||||
expectedVersion = "2.45.5";
|
expectedVersion = "2.47.7";
|
||||||
expectedSrcHash = "sha256-YPM8Hlgrll1I+yYj4Q2dWP8bF5nnLCF5VIMpl3N5Lzk=";
|
expectedSrcHash = "sha256-Q9C8hGBwUlXh00+snHUknSAPKySgUm8rwLmcZCuAHmQ=";
|
||||||
expectedPnpmHash = "sha256-rZ3unYg6d0bAnU05e1ejGokIYKI1m7M97NiS+bqdZOE=";
|
expectedPnpmHash = "sha256-np4qMhJJBwpEJA/Zac1WEueUmaufs2wLBaa1BUiBgcM=";
|
||||||
expectedChangelog = "https://github.com/n8n-io/n8n/releases/tag/n8n@${expectedVersion}";
|
expectedChangelog = "https://github.com/n8n-io/n8n/releases/tag/n8n@${expectedVersion}";
|
||||||
expectedRootNodeModuleSymlinks = [
|
expectedRootNodeModuleSymlinks = [
|
||||||
"ln -s .pnpm/node_modules/sass-embedded node_modules/sass-embedded"
|
"ln -s .pnpm/node_modules/sass-embedded node_modules/sass-embedded"
|
||||||
"ln -s .pnpm/node_modules/sqlite3 node_modules/sqlite3"
|
"ln -s .pnpm/node_modules/sqlite3 node_modules/sqlite3"
|
||||||
];
|
];
|
||||||
|
# pnpm 12: prune must run offline without the minimumReleaseAge registry
|
||||||
|
# check, and peers it drops must be re-linked from the hoisted directory.
|
||||||
|
expectedPreInstallSnippets = [
|
||||||
|
"pnpm --ignore-scripts --offline --config.minimum-release-age=0 prune --prod -w"
|
||||||
|
"Re-linking peer dependencies dropped by pnpm prune"
|
||||||
|
"node_modules/.pnpm/node_modules"
|
||||||
|
];
|
||||||
|
|
||||||
checkN8nOverride = overlayName: package:
|
checkN8nOverride = overlayName: package:
|
||||||
if package.version != expectedVersion
|
if package.version != expectedVersion
|
||||||
@@ -44,6 +51,13 @@
|
|||||||
if !(pkgs.lib.all (symlink: pkgs.lib.hasInfix symlink (package.preBuild or "")) expectedRootNodeModuleSymlinks)
|
if !(pkgs.lib.all (symlink: pkgs.lib.hasInfix symlink (package.preBuild or "")) expectedRootNodeModuleSymlinks)
|
||||||
then throw "${overlayName} n8n preBuild should create root node_modules symlinks required by the upstream buildPhase"
|
then throw "${overlayName} n8n preBuild should create root node_modules symlinks required by the upstream buildPhase"
|
||||||
else "ok";
|
else "ok";
|
||||||
|
|
||||||
|
checkPreInstallPnpm12 = overlayName: package:
|
||||||
|
if !(pkgs.lib.all (snippet: pkgs.lib.hasInfix snippet (package.preInstall or "")) expectedPreInstallSnippets)
|
||||||
|
then throw "${overlayName} n8n preInstall should prune offline with pnpm 12 and re-link pruned peer dependencies"
|
||||||
|
else if pkgs.lib.hasInfix "pnpm --ignore-scripts prune --prod -w" (package.preInstall or "")
|
||||||
|
then throw "${overlayName} n8n preInstall still contains the unmodified upstream prune command"
|
||||||
|
else "ok";
|
||||||
in
|
in
|
||||||
pkgs.runCommand "n8n-overlay-test" {
|
pkgs.runCommand "n8n-overlay-test" {
|
||||||
n8nOverlayFile =
|
n8nOverlayFile =
|
||||||
@@ -60,6 +74,8 @@ in
|
|||||||
defaultOverlayBuildPhase = checkBuildPhaseInherited "overlays.default" defaultPkgs.n8n;
|
defaultOverlayBuildPhase = checkBuildPhaseInherited "overlays.default" defaultPkgs.n8n;
|
||||||
modificationsOverlayRootNodeModuleSymlinks = checkRootNodeModuleSymlinks "overlays.modifications" modifiedPkgs.n8n;
|
modificationsOverlayRootNodeModuleSymlinks = checkRootNodeModuleSymlinks "overlays.modifications" modifiedPkgs.n8n;
|
||||||
defaultOverlayRootNodeModuleSymlinks = checkRootNodeModuleSymlinks "overlays.default" defaultPkgs.n8n;
|
defaultOverlayRootNodeModuleSymlinks = checkRootNodeModuleSymlinks "overlays.default" defaultPkgs.n8n;
|
||||||
|
modificationsOverlayPreInstall = checkPreInstallPnpm12 "overlays.modifications" modifiedPkgs.n8n;
|
||||||
|
defaultOverlayPreInstall = checkPreInstallPnpm12 "overlays.default" defaultPkgs.n8n;
|
||||||
} ''
|
} ''
|
||||||
touch $out
|
touch $out
|
||||||
''
|
''
|
||||||
Reference in new issue
Block a user