forked from kent/consciousness
42 lines
815 B
Nix
42 lines
815 B
Nix
{
|
|
description = "Development shell for consciousness";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = { nixpkgs, ... }:
|
|
let
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
|
in
|
|
{
|
|
devShells = forAllSystems (system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
cargo
|
|
rustc
|
|
rustfmt
|
|
clippy
|
|
rust-analyzer
|
|
|
|
capnproto
|
|
pkg-config
|
|
|
|
jq
|
|
sqlite
|
|
python3
|
|
];
|
|
|
|
RUST_BACKTRACE = "1";
|
|
};
|
|
});
|
|
};
|
|
}
|