Also changes the schemas a bit (still don't care about migrations), switches to named_params!, fixes up perf issues when ingesting manifests and/or hrefs into sqlite, etc. Adds sample queries such as "CudaArtifact conflicts" to datasette config, which explain some issues associated with choosing an evalModules schema on the cudaPackages side.
43 lines
975 B
Nix
43 lines
975 B
Nix
{
|
|
npins ? import ./npins,
|
|
nixpkgs ? npins.nixpkgs,
|
|
pkgs ? import nixpkgs { },
|
|
self ? import ./. { inherit nixpkgs pkgs npins; },
|
|
lib ? pkgs.lib,
|
|
mkShell ? pkgs.mkShell,
|
|
sqlite ? pkgs.sqlite,
|
|
openssl ? pkgs.openssl,
|
|
rust-analyzer ? pkgs.rust-analyzer,
|
|
rustc ? pkgs.rustc,
|
|
rustfmt ? pkgs.rustfmt,
|
|
cargo ? pkgs.cargo,
|
|
pkg-config ? pkgs.pkg-config,
|
|
crate2nix ? pkgs.crate2nix,
|
|
protobuf ? pkgs.protobuf,
|
|
datasette-wrapped ? self.datasette-wrapped,
|
|
datasette-assets ? self.datasette-assets,
|
|
...
|
|
}:
|
|
mkShell {
|
|
name = "sidx-shell";
|
|
nativeBuildInputs = [
|
|
(lib.getBin sqlite)
|
|
cargo
|
|
crate2nix
|
|
rustc
|
|
rustfmt
|
|
rust-analyzer
|
|
pkg-config
|
|
protobuf
|
|
datasette-wrapped
|
|
];
|
|
buildInputs = [
|
|
openssl
|
|
sqlite
|
|
];
|
|
DATASETTE_ASSETS = datasette-assets; # uploaded to cuda-index.someonex.net in bulk...
|
|
shellHook = ''
|
|
export DATABASE_PATH="$HOME/.local/share/sidx/sidx.db"
|
|
unset out outputs phases
|
|
'';
|
|
}
|