You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
description = "Vibed — edu dev shell";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
rust-overlay = {
|
|
url = "github:oxalica/rust-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
nbd.url = "path:../nbd";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, flake-utils, rust-overlay, nbd }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
overlays = [ (import rust-overlay) ];
|
|
pkgs = import nixpkgs {
|
|
inherit system overlays;
|
|
};
|
|
|
|
rustToolchain = pkgs.rust-bin.stable.latest.default.override {
|
|
extensions = [ "rust-src" "rust-analyzer" "clippy" "rustfmt" ];
|
|
targets = [ "wasm32-unknown-unknown" ];
|
|
};
|
|
in
|
|
{
|
|
devShells.default = pkgs.mkShell {
|
|
buildInputs = [
|
|
# Rust
|
|
rustToolchain
|
|
|
|
pkgs.mdbook
|
|
|
|
nbd.packages.${system}.nbd
|
|
|
|
pkgs.jq
|
|
];
|
|
|
|
shellHook = ''
|
|
echo "vibed/edu dev shell loaded"
|
|
'';
|
|
};
|
|
}
|
|
);
|
|
}
|