mercury/shell.nix

40 lines
963 B
Nix
Raw Permalink Normal View History

2021-01-01 19:04:22 +01:00
let
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
2021-01-03 22:09:40 +01:00
nixpkgs = import <nixos-unstable> { overlays = [ moz_overlay ]; };
2021-01-01 19:04:22 +01:00
rustNightlyChannel = (nixpkgs.rustChannelOf { date = "2020-03-19"; channel = "nightly"; }).rust.override {
extensions = [
"rust-src"
"rls-preview"
"clippy-preview"
"rustfmt-preview"
];
};
rustStableChannel = nixpkgs.latest.rustChannels.stable.rust.override {
extensions = [
"rust-src"
"rls-preview"
"clippy-preview"
"rustfmt-preview"
];
};
in
with nixpkgs;
stdenv.mkDerivation {
name = "moz_overlay_shell";
buildInputs = [
rustStableChannel
2021-01-03 22:09:40 +01:00
(vscode-with-extensions.override {
vscodeExtensions = with vscode-extensions; [
bbenoist.Nix
vadimcn.vscode-lldb
matklad.rust-analyzer
];
})
2021-01-04 10:01:06 +01:00
coz
2021-01-04 15:55:10 +01:00
cargo-flamegraph
2021-01-05 23:04:38 +01:00
cmake
gcc
llvm_11
2021-01-01 19:04:22 +01:00
];
}