init with nix-shell

This commit is contained in:
Daniel Olsen 2020-07-15 03:13:36 +02:00
commit bf6ef486b1
3 changed files with 35 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use_nix

7
README.txt Normal file
View File

@ -0,0 +1,7 @@
# Triav1lity
Sequel to AV1Master, alternative to grav1
Aims to extend and implement grav1's API in addition to improving upon the AV1Master API so that it is compatible with the grav1's webui and grav1c
Uses async rocket and stores state.

27
shell.nix Normal file
View File

@ -0,0 +1,27 @@
let
moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
nixpkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
rustNightlyChannel = (nixpkgs.rustChannelOf { date = "2020-07-12"; channel = "nightly"; }).rust.override {
extensions = [
"rust-src"
"rls-preview"
"clippy-preview"
"rustfmt-preview"
];
};
rustStableChannel = nixpkgs.latest.rustChannels.stable.rust.override {
extensions = [
"rust-src"
"rls-preview"
"clippy-preview"
"rustfmt-preview"
];
};
in
with nixpkgs;
stdenv.mkDerivation {
name = "moz_overlay_shell";
buildInputs = [
rustNightlyChannel
];
}