sqlite-vec: init at v0.1.1
This commit is contained in:
parent
31b2f394d9
commit
8e384f217d
46
pkgs/by-name/sq/sqlite-vec/package.nix
Normal file
46
pkgs/by-name/sq/sqlite-vec/package.nix
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
lib,
|
||||
gettext,
|
||||
fetchFromGitHub,
|
||||
sqlite,
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "sqlite-vec";
|
||||
version = "0.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "asg017";
|
||||
repo = "sqlite-vec";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-h5gCKyeEAgmXCpOpXVDzoZEtv7Yiq7GtgImuoF9uBm0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gettext ];
|
||||
|
||||
buildInputs = [ sqlite ];
|
||||
|
||||
makeFlags = [
|
||||
"loadable"
|
||||
"static"
|
||||
];
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm444 -t "$out/lib" \
|
||||
"dist/libsqlite_vec0${stdenv.hostPlatform.extensions.staticLibrary}" \
|
||||
"dist/vec0${stdenv.hostPlatform.extensions.sharedLibrary}"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Vector search SQLite extension that runs anywhere";
|
||||
homepage = "https://github.com/asg017/sqlite-vec";
|
||||
changelog = "https://github.com/asg017/sqlite-vec/releases/tag/${finalAttrs.src.rev}";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.anmonteiro ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user