csci5607/flake.nix

42 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2023-01-21 08:03:11 +00:00
{
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 ];
};
2023-02-21 00:38:34 +00:00
# toolchain = pkgs.fenix.stable;
toolchain = pkgs.fenix.complete;
2023-01-21 08:03:11 +00:00
in rec {
devShell = pkgs.mkShell {
2023-02-01 22:13:48 +00:00
packages = (with pkgs; [
2023-02-21 00:38:34 +00:00
2023-02-01 22:13:48 +00:00
cargo-deny
cargo-edit
2023-02-21 00:38:34 +00:00
cargo-expand
2023-02-15 19:09:56 +00:00
cargo-flamegraph
cargo-watch
imagemagick
2023-02-15 23:13:22 +00:00
linuxPackages_latest.perf
2023-02-01 22:13:48 +00:00
pandoc
texlive.combined.scheme-full
2023-02-15 19:09:56 +00:00
unzip
zip
2023-02-05 04:55:07 +00:00
(python310.withPackages (p: with p; [ numpy ]))
2023-02-01 22:13:48 +00:00
]) ++ (with toolchain; [
cargo
rustc
clippy
2023-01-31 20:41:23 +00:00
2023-02-01 22:13:48 +00:00
# Get the nightly version of rustfmt so we can wrap comments
pkgs.fenix.default.rustfmt
]);
2023-01-21 08:03:11 +00:00
CARGO_UNSTABLE_SPARSE_REGISTRY = "true";
};
});
}