mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-11-03 12:17:35 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			761 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			761 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
{
 | 
						|
  rustPlatform,
 | 
						|
  fetchFromGitHub,
 | 
						|
  writeShellScriptBin,
 | 
						|
}:
 | 
						|
rustPlatform.buildRustPackage (finalAttrs: {
 | 
						|
  pname = "blink-cmp";
 | 
						|
  version = "1.2.0";
 | 
						|
 | 
						|
  src = fetchFromGitHub {
 | 
						|
    owner = "Saghen";
 | 
						|
    repo = "blink.cmp";
 | 
						|
    tag = "v${finalAttrs.version}";
 | 
						|
    hash = "sha256-bKe8SSg1HPWE7b4iRQJwiOVCrvvgttuHCOIa4U/38AY=";
 | 
						|
  };
 | 
						|
 | 
						|
  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-IDoDugtNWQovfSstbVMkKHLBXKa06lxRWmywu4zyS3M=";
 | 
						|
  useFetchCargoVendor = true;
 | 
						|
 | 
						|
  nativeBuildInputs = [
 | 
						|
    (writeShellScriptBin "git" "exit 1")
 | 
						|
  ];
 | 
						|
 | 
						|
  env.RUSTC_BOOTSTRAP = true;
 | 
						|
})
 |