feat: set opencode db path explicitly
This commit is contained in:
parent
d276c2d788
commit
da72bc5483
2 changed files with 2 additions and 0 deletions
|
|
@ -90,6 +90,7 @@
|
|||
serviceConfig = {
|
||||
Type = "simple";
|
||||
User = "jet";
|
||||
Environment = [ "OPENCODE_DB=opencode.db" ];
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
TimeoutStartSec = 75;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ let
|
|||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
postBuild = ''
|
||||
wrapProgram "$out/bin/opencode" \
|
||||
--set OPENCODE_DB opencode.db \
|
||||
--prefix LD_LIBRARY_PATH : "${pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc.lib ]}"
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue