zoxide/shell.nix
2021-08-24 02:00:34 +05:30

37 lines
935 B
Nix

let
rust = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/ad311f5bb5c5ef475985f1e0f264e831470a8510.tar.gz");
pkgs = import <nixpkgs> { overlays = [ rust ]; };
pkgs-latest = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/b4692e4197869c42c46d77e31af7e687e1892f55.tar.gz") {};
pkgs-python = pkgs-latest.python3.withPackages (pkgs: [ pkgs.black pkgs.mypy pkgs.pylint ]);
in
pkgs.mkShell {
buildInputs = [
# 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
pkgs-python
# Dependencies
pkgs.cacert
pkgs.libiconv
pkgs-latest.fzf
pkgs-latest.git
];
RUST_BACKTRACE = 1;
}