diff options
-rw-r--r-- | .builds/nixos.yml | 5 | ||||
-rw-r--r-- | ci.nix | 15 |
2 files changed, 16 insertions, 4 deletions
diff --git a/.builds/nixos.yml b/.builds/nixos.yml index baef33d6..eef09fab 100644 --- a/.builds/nixos.yml +++ b/.builds/nixos.yml @@ -20,7 +20,10 @@ tasks: ~/.cargo/bin/mdbook build - build: | cd imag - nix-shell ./ci.nix --run "cargo build --all --all-features --tests" + nix-shell ./ci.nix --run "cargo build --all --all-features" + - prepare-test: | + git config --global user.name "Test user" + git config --global user.email "test@user.tld" - test: | cd imag nix-shell ./ci.nix --run "cargo test --all --all-features" @@ -1,9 +1,18 @@ -{ pkgs ? (import <nixpkgs> {}) }: +{ ... }: +let + moz_overlay = import ( + builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz + ); + + pkgs = import <nixpkgs> { overlays = [ moz_overlay ]; }; +in pkgs.mkShell { buildInputs = with pkgs; [ - rustc - cargo + rustChannels.stable.rust-std + rustChannels.stable.rust + rustChannels.stable.rustc + rustChannels.stable.cargo cmake curl |