-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.nix
More file actions
36 lines (29 loc) · 754 Bytes
/
package.nix
File metadata and controls
36 lines (29 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, stdenv
, bun
, makeWrapper
, src ? ./.
}:
stdenv.mkDerivation {
pname = "replix";
version = "0.1.0";
inherit src;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ bun ];
installPhase = ''
mkdir -p $out/share/replix
cp -r src $out/share/replix/
cp -r fixtures $out/share/replix/
cp package.json tsconfig.json $out/share/replix/
mkdir -p $out/bin
makeWrapper ${bun}/bin/bun $out/bin/replix \
--add-flags "$out/share/replix/src/index.ts" \
--set NODE_ENV production
'';
meta = with lib; {
description = "Auto-inject agent skills and MCP servers into Claude Code";
homepage = "https://github.com/imrane/replix";
license = licenses.mit;
platforms = platforms.unix;
};
}