first commit: added basic configuration files

This commit is contained in:
Nickiel12 2022-12-18 17:00:54 -08:00
parent fde8be8768
commit b707f0caea
3 changed files with 38 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

11
.gitignore vendored
View file

@ -1,3 +1,9 @@
# Generated by direnv and nix-shell
.direnv/*
# vim temp file
*.swp
# Generated by Cargo
# will have compiled files and executables
/target/
@ -8,3 +14,8 @@ Cargo.lock
# These are backup files generated by rustfmt
**/*.rs.bk
# Added by cargo
/target

26
shell.nix Normal file
View file

@ -0,0 +1,26 @@
{ 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
pkg-config
alsa-lib
];
RUST_BACKTRACE = 1;
shellHook = ''
alias gust=/home/nixolas/Documents/Gust/target/debug/gust
'';
}