homeman-rs/flake.nix

31 lines
729 B
Nix
Raw Normal View History

2024-01-05 00:45:43 -06:00
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs?rev=2c7f3c0fb7c08a0814627611d9d7d45ab6d75335";
outputs = {
self,
nixpkgs,
}: let
inherit (self) outputs;
supportedSystems = ["x86_64-linux"];
forEachSupportedSystem = nixpkgs.lib.genAttrs supportedSystems;
in {
devShells = forEachSupportedSystem (system: let
pkgs = import nixpkgs {inherit system;};
in {
rust-dev = pkgs.mkShell {
buildInputs = with pkgs; [
sqlite
2024-01-05 01:55:37 -06:00
sqlx-cli
2024-01-05 00:45:43 -06:00
cargo
rustc
rustfmt
rustPackages.clippy
rust-analyzer
];
2024-01-05 01:55:37 -06:00
DATABASE_URL = "sqlite:fam.db";
2024-01-05 00:45:43 -06:00
};
default = outputs.devShells.${system}.rust-dev;
});
};
}