28 lines
673 B
Nix
28 lines
673 B
Nix
{
|
|
description = "vectordb";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
};
|
|
in
|
|
{
|
|
packages.default = pkgs.hello;
|
|
|
|
devShell = with pkgs; mkShell {
|
|
nativeBuildInputs = [ cargo cargo-outdated cargo-zigbuild clippy gcc rust-analyzer rustc rustfmt ];
|
|
|
|
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
|
};
|
|
|
|
formatter = pkgs.nixpkgs-fmt;
|
|
}
|
|
);
|
|
}
|