Koucha/flake.nix
Julia Lange dac085756a
db&adapter, add sqlx + schema & add adapter
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-06 15:01:17 -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}";
};
});
};
}