File tree Expand file tree Collapse file tree
pkgs/by-name/li/librechat Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 lib ,
33 buildNpmPackage ,
44 fetchFromGitHub ,
5- nodejs_22 ,
5+ nodejs ,
66 pkg-config ,
77 node-gyp ,
88 vips ,
1212
1313buildNpmPackage ( finalAttrs : {
1414 pname = "librechat" ;
15- version = "0.8.6 " ;
15+ version = "0.8.7 " ;
1616
1717 src = fetchFromGitHub {
1818 owner = "danny-avila" ;
1919 repo = "LibreChat" ;
2020 tag = "v${ finalAttrs . version } " ;
21- hash = "sha256-cWgjsLN7NnJNJ1hYPo0h3lh+W4wi9qqttevNfNrYdXg =" ;
21+ hash = "sha256-egnmkYpQS/AshMmXP5C8qhwA+7TPZYnu0ct552HFjGg =" ;
2222 } ;
2323
2424 patches = [
@@ -35,10 +35,7 @@ buildNpmPackage (finalAttrs: {
3535 ] ;
3636
3737 npmDepsFetcherVersion = 2 ;
38- npmDepsHash = "sha256-Y+oC9eigwzL8jei5Hs4YOf32oFgULPmHrSDApxPKh+0=" ;
39-
40- # npm dependency install fails with nodejs_24: https://github.com/NixOS/nixpkgs/issues/474535
41- nodejs = nodejs_22 ;
38+ npmDepsHash = "sha256-U2DzvfzKCmAYLFG0FbFcng5goj1mYCjTpJuQ36fVNuA=" ;
4239
4340 nativeBuildInputs = [
4441 pkg-config
@@ -61,7 +58,12 @@ buildNpmPackage (finalAttrs: {
6158
6259 # npmConfigHook only patches the root node_modules
6360 postConfigure = ''
64- patchShebangs client/node_modules
61+ patchShebangs $(find "$PWD" -type d -name node_modules -prune ! -path "$PWD/node_modules" -print)
62+ '' ;
63+
64+ preInstall = ''
65+ # not sure why this is something npm pack tries to keep
66+ rm -rf ./packages/data-schemas/node_modules/winston-transport/.nyc_output
6567 '' ;
6668
6769 # For reasons beyond my understanding, the api and client directory disappears after the build finishes.
You can’t perform that action at this time.
0 commit comments