From bf6ef486b19c2cb23ef2426bbad049c9b5871fe6 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Wed, 15 Jul 2020 03:13:36 +0200 Subject: [PATCH] init with nix-shell --- .envrc | 1 + README.txt | 7 +++++++ shell.nix | 27 +++++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 .envrc create mode 100644 README.txt create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..17d6464 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use_nix \ No newline at end of file diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..5e84254 --- /dev/null +++ b/README.txt @@ -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. \ No newline at end of file diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..c274296 --- /dev/null +++ b/shell.nix @@ -0,0 +1,27 @@ +let + moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz); + nixpkgs = import { 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 + ]; + }