mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-08 11:21:35 +00:00
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6a6a6964cc1685d28fe56579e8824129605342c6
39 lines
733 B
Nix
39 lines
733 B
Nix
{
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
writeShellScriptBin,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "blink-cmp";
|
|
version = "1.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Saghen";
|
|
repo = "blink.cmp";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-IHRYgKcYP+JDGu8Vtawgzlhq25vpROFqb8KmpfVMwCk=";
|
|
};
|
|
|
|
forceShare = [
|
|
"man"
|
|
"info"
|
|
];
|
|
|
|
postInstall = ''
|
|
cp -r {lua,plugin} "$out"
|
|
|
|
mkdir -p "$out/doc"
|
|
cp 'doc/'*'.txt' "$out/doc/"
|
|
|
|
mkdir -p "$out/target"
|
|
mv "$out/lib" "$out/target/release"
|
|
'';
|
|
|
|
cargoHash = "sha256-QsVCugYWRri4qu64wHnbJQZBhy4tQrr+gCYbXtRBlqE=";
|
|
|
|
nativeBuildInputs = [
|
|
(writeShellScriptBin "git" "exit 1")
|
|
];
|
|
|
|
env.RUSTC_BOOTSTRAP = true;
|
|
})
|