summaryrefslogtreecommitdiffstats
path: root/.builds
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-01-18 13:28:52 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-01-18 13:44:48 +0100
commit74b6c049ff57044852160119fdf27d5ca9de55ce (patch)
tree9963875fff99191accac5ccb391883d3c2f571d7 /.builds
parenta9aa8cd182dbc12cd3f13c006778a5347f27cacb (diff)
Add minified shell.nix file for nixos based CI
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to '.builds')
-rw-r--r--.builds/ci.nix29
-rw-r--r--.builds/nixos.yml6
2 files changed, 32 insertions, 3 deletions
diff --git a/.builds/ci.nix b/.builds/ci.nix
new file mode 100644
index 0000000..8927ee2
--- /dev/null
+++ b/.builds/ci.nix
@@ -0,0 +1,29 @@
+{ ... }:
+
+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; [
+ rustChannels.stable.rust-std
+ rustChannels.stable.rust
+ rustChannels.stable.rustc
+ rustChannels.stable.cargo
+
+ postgresql
+
+ cmake
+ curl
+ gcc
+ openssl
+ pkgconfig
+ which
+ zlib
+ ];
+
+ LIBCLANG_PATH = "${pkgs.llvmPackages.libclang}/lib";
+}
+
diff --git a/.builds/nixos.yml b/.builds/nixos.yml
index b7b13b7..cda3a42 100644
--- a/.builds/nixos.yml
+++ b/.builds/nixos.yml
@@ -6,13 +6,13 @@ sources:
tasks:
- install: |
cd butido
- nix-shell ./shell.nix --run "echo nix-shell ready"
+ nix-shell ./.builds/ci.nix --run "echo nix-shell ready"
- build: |
cd butido
- nix-shell ./shell.nix --run "cargo build --all --all-features"
+ nix-shell ./.builds/ci.nix --run "cargo build --all --all-features"
- test: |
cd butido
- nix-shell ./shell.nix --run "cargo test --all --all-features"
+ nix-shell ./.builds/ci.nix --run "cargo test --all --all-features"
triggers:
- action: email
condition: always