Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 46 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ lib, gettext, fetchFromGitHub, sqlite, stdenv,}:
stdenv.mkDerivation (finalAttrs: { pname = "sqlite-vec"; version = "0.1.6";
src = fetchFromGitHub { owner = "asg017"; repo = "sqlite-vec"; rev = "v${finalAttrs.version}"; hash = "sha256-CgeSoRoQRMb/V+RzU5NQuIk/3OonYjAfolWD2hqNuXU="; };
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; };})