Compare commits
2 Commits
0c517e0957
...
77236af589
| Author | SHA1 | Date | |
|---|---|---|---|
|
77236af589
|
|||
|
f71d156ea8
|
@@ -40,6 +40,8 @@
|
|||||||
"flakes"
|
"flakes"
|
||||||
];
|
];
|
||||||
download-buffer-size = 2 * 1024 * 1024 * 1024;
|
download-buffer-size = 2 * 1024 * 1024 * 1024;
|
||||||
|
download-attempts = 3;
|
||||||
|
fallback = true;
|
||||||
warn-dirty = false;
|
warn-dirty = false;
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://cache.nixos.org"
|
"https://cache.nixos.org"
|
||||||
|
|||||||
@@ -41,7 +41,8 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgs.makeWrapper
|
pkgs.makeWrapper
|
||||||
] ++ lib.optionals stdenv.hostPlatform.isLinux [ pkgs.patchelf ];
|
]
|
||||||
|
++ lib.optionals stdenv.hostPlatform.isLinux [ pkgs.patchelf ];
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
@@ -56,9 +57,11 @@ stdenv.mkDerivation {
|
|||||||
# NOTE:(@janezicmatej) upstream is a bun single-file-executable; the
|
# NOTE:(@janezicmatej) upstream is a bun single-file-executable; the
|
||||||
# embedded script payload sits at the tail of the ELF, so autoPatchelfHook's
|
# embedded script payload sits at the tail of the ELF, so autoPatchelfHook's
|
||||||
# section-layout changes corrupt it — only the interpreter can be rewritten
|
# section-layout changes corrupt it — only the interpreter can be rewritten
|
||||||
postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
|
postFixup =
|
||||||
|
lib.optionalString stdenv.hostPlatform.isLinux ''
|
||||||
patchelf --set-interpreter ${stdenv.cc.bintools.dynamicLinker} $out/bin/claude
|
patchelf --set-interpreter ${stdenv.cc.bintools.dynamicLinker} $out/bin/claude
|
||||||
'' + ''
|
''
|
||||||
|
+ ''
|
||||||
wrapProgram $out/bin/claude \
|
wrapProgram $out/bin/claude \
|
||||||
--set DISABLE_AUTOUPDATER 1 \
|
--set DISABLE_AUTOUPDATER 1 \
|
||||||
--set-default FORCE_AUTOUPDATE_PLUGINS 1 \
|
--set-default FORCE_AUTOUPDATE_PLUGINS 1 \
|
||||||
|
|||||||
Reference in New Issue
Block a user