chore(nix): remove external ripgrep (#22482)
This commit is contained in:
parent
aeb7d99d20
commit
bbd5faf5cd
1 changed files with 18 additions and 19 deletions
|
|
@ -7,7 +7,6 @@
|
||||||
sysctl,
|
sysctl,
|
||||||
makeBinaryWrapper,
|
makeBinaryWrapper,
|
||||||
models-dev,
|
models-dev,
|
||||||
ripgrep,
|
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
versionCheckHook,
|
versionCheckHook,
|
||||||
writableTmpDirAsHomeHook,
|
writableTmpDirAsHomeHook,
|
||||||
|
|
@ -52,25 +51,25 @@ stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase =
|
||||||
runHook preInstall
|
''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
install -Dm755 dist/opencode-*/bin/opencode $out/bin/opencode
|
install -Dm755 dist/opencode-*/bin/opencode $out/bin/opencode
|
||||||
install -Dm644 schema.json $out/share/opencode/schema.json
|
install -Dm644 schema.json $out/share/opencode/schema.json
|
||||||
|
''
|
||||||
wrapProgram $out/bin/opencode \
|
# bun runs sysctl to detect if dunning on rosetta2
|
||||||
--prefix PATH : ${
|
+ lib.optionalString stdenvNoCC.hostPlatform.isDarwin ''
|
||||||
lib.makeBinPath (
|
wrapProgram $out/bin/opencode \
|
||||||
[
|
--prefix PATH : ${
|
||||||
ripgrep
|
lib.makeBinPath [
|
||||||
|
sysctl
|
||||||
]
|
]
|
||||||
# bun runs sysctl to detect if dunning on rosetta2
|
}
|
||||||
++ lib.optional stdenvNoCC.hostPlatform.isDarwin sysctl
|
''
|
||||||
)
|
+ ''
|
||||||
}
|
runHook postInstall
|
||||||
|
'';
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = lib.optionalString (stdenvNoCC.buildPlatform.canExecute stdenvNoCC.hostPlatform) ''
|
postInstall = lib.optionalString (stdenvNoCC.buildPlatform.canExecute stdenvNoCC.hostPlatform) ''
|
||||||
# trick yargs into also generating zsh completions
|
# trick yargs into also generating zsh completions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue