csci5607/flake.nix
2023-02-20 18:38:34 -06:00

41 lines
1.1 KiB
Nix

{
inputs = { fenix.url = "github:nix-community/fenix"; };
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;
toolchain = pkgs.fenix.complete;
in rec {
devShell = pkgs.mkShell {
packages = (with pkgs; [
cargo-deny
cargo-edit
cargo-expand
cargo-flamegraph
cargo-watch
imagemagick
linuxPackages_latest.perf
pandoc
texlive.combined.scheme-full
unzip
zip
(python310.withPackages (p: with p; [ numpy ]))
]) ++ (with toolchain; [
cargo
rustc
clippy
# Get the nightly version of rustfmt so we can wrap comments
pkgs.fenix.default.rustfmt
]);
CARGO_UNSTABLE_SPARSE_REGISTRY = "true";
};
});
}