Koucha/flake.nix

36 lines
721 B
Nix
Raw Normal View History

2026-01-14 12:15:07 -08:00
{
description = "Koucha rust flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11-small";
2026-01-14 12:15:07 -08:00
};
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
2026-01-15 15:45:08 -08:00
sqlx-cli
2026-01-14 12:15:07 -08:00
];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
});
};
}