diff options
Diffstat (limited to '.builds')
-rw-r--r-- | .builds/ci.nix | 29 | ||||
-rw-r--r-- | .builds/nixos.yml | 6 |
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 |