Blackjack/flake.nix

37 lines
761 B
Nix
Raw Normal View History

2025-10-24 12:11:25 -07:00
{
description = "Blackjack Rust backend";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
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
rustfmt
clippy
sqlx-cli
2025-10-24 12:11:25 -07:00
];
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
};
});
};
}