Koucha/flake.nix
Julia Lange 6702f976cb
Add sqlx, add Adapter, create initial schema
Adds SQLX for database management, and an Adapter interface for
interacting with it. Through the type "AdapterPool"

Creates an initial_schema with everything I think I'll need.
2026-02-05 12:25:34 -08:00

35 lines
721 B
Nix

{
description = "Koucha rust flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11-small";
};
outputs = { self, nixpkgs }:
let
forAllSystems =
function:
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (
system: function (
import nixpkgs {
inherit system;
}
)
);
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
buildInputs = with pkgs; [
rustc
cargo
rust-analyzer
sqlx-cli
];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
});
};
}