first commit: added basic configuration files
This commit is contained in:
parent
fde8be8768
commit
b707f0caea
3 changed files with 38 additions and 0 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
use nix
|
11
.gitignore
vendored
11
.gitignore
vendored
|
@ -1,3 +1,9 @@
|
||||||
|
# Generated by direnv and nix-shell
|
||||||
|
.direnv/*
|
||||||
|
|
||||||
|
# vim temp file
|
||||||
|
*.swp
|
||||||
|
|
||||||
# Generated by Cargo
|
# Generated by Cargo
|
||||||
# will have compiled files and executables
|
# will have compiled files and executables
|
||||||
/target/
|
/target/
|
||||||
|
@ -8,3 +14,8 @@ Cargo.lock
|
||||||
|
|
||||||
# These are backup files generated by rustfmt
|
# These are backup files generated by rustfmt
|
||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
|
|
||||||
|
|
||||||
|
# Added by cargo
|
||||||
|
|
||||||
|
/target
|
||||||
|
|
26
shell.nix
Normal file
26
shell.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue