fix(packages): correct pname typo, add missing category, add sed warning, fix indent
- graphify: fix pname typo graphifyy -> graphify - container-use: add missing passthru.category - radar: add brittleness warning on postPatch sed block - freebuff: fix extractNpmPkg indentation
This commit is contained in:
@@ -34,6 +34,7 @@ buildGoModule rec {
|
||||
];
|
||||
|
||||
passthru = {
|
||||
category = "AI Coding Agents";
|
||||
updateScript = [
|
||||
"nix-update"
|
||||
"--flake"
|
||||
|
||||
@@ -59,7 +59,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
src = freebuffSrc;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper patchelf ];
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
patchelf
|
||||
];
|
||||
|
||||
dontStrip = true;
|
||||
dontPatchelf = true;
|
||||
@@ -107,20 +110,20 @@ stdenv.mkDerivation rec {
|
||||
|
||||
# Launcher: run the patched engine directly from nix-store
|
||||
cat > "$out/bin/launcher.js" << LAUNCHER_EOF
|
||||
#!/usr/bin/env node
|
||||
const { spawn } = require('child_process');
|
||||
const TERMINAL_RESET = '\x1b[?1049l\x1b[?1000l\x1b[?1002l\x1b[?1003l\x1b[?1006l\x1b[?2004l\x1b[?25h';
|
||||
const engine = '${placeholder "out"}/bin/freebuff-engine';
|
||||
#!/usr/bin/env node
|
||||
const { spawn } = require('child_process');
|
||||
const TERMINAL_RESET = '\x1b[?1049l\x1b[?1000l\x1b[?1002l\x1b[?1003l\x1b[?1006l\x1b[?2004l\x1b[?25h';
|
||||
const engine = '${placeholder "out"}/bin/freebuff-engine';
|
||||
|
||||
function reset() {
|
||||
function reset() {
|
||||
try { if (process.stdin.isTTY && process.stdin.setRawMode) process.stdin.setRawMode(false); } catch(e){}
|
||||
try { if (process.stdout.isTTY) process.stdout.write(TERMINAL_RESET); } catch(e){}
|
||||
}
|
||||
}
|
||||
|
||||
const child = spawn(engine, process.argv.slice(2), { stdio: 'inherit' });
|
||||
child.on('exit', (code, signal) => { reset(); process.exit(signal ? 1 : code || 0); });
|
||||
child.on('error', (e) => { console.error('Failed to start freebuff:', e.message); process.exit(1); });
|
||||
LAUNCHER_EOF
|
||||
const child = spawn(engine, process.argv.slice(2), { stdio: 'inherit' });
|
||||
child.on('exit', (code, signal) => { reset(); process.exit(signal ? 1 : code || 0); });
|
||||
child.on('error', (e) => { console.error('Failed to start freebuff:', e.message); process.exit(1); });
|
||||
LAUNCHER_EOF
|
||||
|
||||
makeWrapper "${nodejs}/bin/node" "$out/bin/freebuff" \
|
||||
--set NODE_PATH "$out/lib/node_modules" \
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "graphifyy";
|
||||
pname = "graphify";
|
||||
version = "0.7.10";
|
||||
pyproject = true;
|
||||
|
||||
|
||||
@@ -25,6 +25,9 @@ let
|
||||
|
||||
postPatch = ''
|
||||
# Fix missing resolved URLs for packages under web/node_modules/
|
||||
# WARNING: This sed is version-specific — if upstream bumps a
|
||||
# transitive dep version, the patterns silently fail and the
|
||||
# build breaks. Update resolved/integrity values when bumping radar.
|
||||
# that are actually external npm packages (not workspace links).
|
||||
# Insert "resolved" and "integrity" after the "version" field
|
||||
# for each affected package using sed.
|
||||
|
||||
Reference in New Issue
Block a user