2022-12-09 13:34:45 -08:00
|
|
|
{ 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
|
|
|
|
sqlite
|
|
|
|
sqliteman
|
2022-12-17 23:46:46 -08:00
|
|
|
pkg-config
|
|
|
|
alsa-lib
|
2022-12-09 13:34:45 -08:00
|
|
|
];
|
|
|
|
|
|
|
|
RUST_BACKTRACE = 1;
|
2022-12-10 22:10:12 -08:00
|
|
|
|
2023-03-08 17:37:51 -08:00
|
|
|
shellHook = ''
|
|
|
|
cargo install --locked bacon
|
|
|
|
export PATH=$HOME/.cargo/bin:$PATH
|
|
|
|
'';
|
2022-12-09 13:34:45 -08:00
|
|
|
}
|