2020-11-11 12:53:37 +00:00
|
|
|
let
|
2021-08-15 15:07:19 +00:00
|
|
|
rust = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/ad311f5bb5c5ef475985f1e0f264e831470a8510.tar.gz");
|
2021-07-20 21:09:18 +00:00
|
|
|
pkgs = import <nixpkgs> { overlays = [ rust ]; };
|
2021-08-15 15:07:19 +00:00
|
|
|
pkgs-latest = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/1359293549af4f8ca536716d0432f3cdd0afe0c6.tar.gz") {};
|
2021-07-20 21:09:18 +00:00
|
|
|
pkgs-python = pkgs-latest.python3.withPackages (pkgs: [ pkgs.black pkgs.mypy pkgs.pylint ]);
|
2020-11-11 12:53:37 +00:00
|
|
|
in
|
|
|
|
pkgs.mkShell {
|
|
|
|
buildInputs = [
|
2021-07-20 21:09:18 +00:00
|
|
|
# Rust
|
|
|
|
pkgs.rust-bin.stable.latest.default
|
|
|
|
|
|
|
|
# Shells
|
|
|
|
pkgs-latest.bash
|
|
|
|
pkgs-latest.dash
|
|
|
|
pkgs-latest.elvish
|
|
|
|
pkgs-latest.nushell
|
|
|
|
pkgs-latest.fish
|
|
|
|
pkgs-latest.powershell
|
|
|
|
pkgs-latest.xonsh
|
|
|
|
pkgs-latest.zsh
|
|
|
|
|
|
|
|
# Linters
|
|
|
|
pkgs-latest.cargo-audit
|
|
|
|
pkgs-latest.shellcheck
|
|
|
|
pkgs-latest.shfmt
|
2021-04-05 06:31:24 +00:00
|
|
|
pkgs-python
|
2021-07-20 21:09:18 +00:00
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
pkgs.cacert
|
|
|
|
pkgs.libiconv
|
|
|
|
pkgs-latest.fzf
|
|
|
|
pkgs-latest.git
|
2020-11-11 12:53:37 +00:00
|
|
|
];
|
2021-07-20 21:09:18 +00:00
|
|
|
|
2020-11-11 12:53:37 +00:00
|
|
|
RUST_BACKTRACE = 1;
|
|
|
|
}
|