2023-03-23 01:31:24 +00:00
|
|
|
{
|
2023-03-23 02:24:46 +00:00
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs";
|
|
|
|
fenix.url = "github:nix-community/fenix";
|
|
|
|
};
|
2023-03-23 01:31:24 +00:00
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils, fenix }:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
overlays = [ fenix.overlays.default ];
|
|
|
|
};
|
|
|
|
|
|
|
|
toolchain = pkgs.fenix.stable;
|
|
|
|
in rec {
|
|
|
|
devShell = pkgs.mkShell {
|
|
|
|
packages = (with pkgs; [
|
|
|
|
cargo-deny
|
|
|
|
cargo-edit
|
|
|
|
cargo-expand
|
|
|
|
cargo-flamegraph
|
|
|
|
cargo-watch
|
|
|
|
|
|
|
|
deno
|
2023-03-23 03:06:30 +00:00
|
|
|
mdbook
|
2023-03-23 01:31:24 +00:00
|
|
|
|
|
|
|
(python310.withPackages (p: with p; [ ipython numpy scipy sympy ]))
|
|
|
|
]) ++ (with toolchain; [
|
|
|
|
cargo
|
|
|
|
rustc
|
|
|
|
clippy
|
|
|
|
|
|
|
|
# Get the nightly version of rustfmt so we can wrap comments
|
|
|
|
pkgs.fenix.default.rustfmt
|
|
|
|
]);
|
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|