Merge pull request #1416 from Gerg-L/blink.cmp

blink.cmp: don't use fake git
This commit is contained in:
raf 2026-02-18 21:26:41 +03:00 committed by GitHub
commit b980b5b3fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,6 @@
rustPlatform,
fetchFromGitHub,
rust-jemalloc-sys,
writeShellScriptBin,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "blink-cmp";
@ -22,6 +21,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
"info"
];
# Tries to call git
preBuild = ''
rm build.rs
'';
postInstall = ''
cp -r {lua,plugin} "$out"
@ -44,10 +48,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
cargoHash = "sha256-Qdt8O7IGj2HySb1jxsv3m33ZxJg96Ckw26oTEEyQjfs=";
nativeBuildInputs = [
(writeShellScriptBin "git" "exit 1")
];
env = {
RUSTC_BOOTSTRAP = true;