SousaCLI/shell.nix

30 lines
607 B
Nix
Raw Permalink Normal View History

{ pkgs ? import <nixpkgs> {}}:
let
rust_overlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
pkgs = import <nixpkgs> { overlays = [ rust_overlay ]; };
ruststable = (pkgs.latest.rustChannels.stable.default.override {
extensions = [
"rust-src"
];
});
in
pkgs.mkShell {
buildInputs = with pkgs; [
ruststable
2023-03-09 21:11:53 -08:00
rust-analyzer
sqlite
sqliteman
pkg-config
alsa-lib
2023-03-08 17:38:07 -08:00
rust-analyzer
];
RUST_BACKTRACE = 1;
2023-03-08 17:38:07 -08:00
shellHook = ''
cargo install --locked bacon
export PATH=$HOME/.cargo/bin:$PATH
'';
}