~matthiasbeyer/maildir

53364f9a27502c76f628b7907552c2026c844239 — Matthias Beyer 1 year, 22 days ago eb6973b
Add build setup

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2 files changed, 34 insertions(+), 0 deletions(-)

A .builds/nixos.yml
A shell.nix
A .builds/nixos.yml => .builds/nixos.yml +14 -0
@@ 0,0 1,14 @@
image: nixos/latest
repositories:
  nixpkgs: https://nixos.org/channels/nixos-20.03
sources:
  - https://git.sr.ht/~matthiasbeyer/maildir
tasks:
  - build: |
      cd maildir
      nix-shell ./shell.nix --run "cargo build --all --all-features"
triggers:
  - action: email
    condition: always
    to: mail@beyermatthias.de


A shell.nix => shell.nix +20 -0
@@ 0,0 1,20 @@
{ ... }:

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
  ];
  LIBCLANG_PATH   = "${pkgs.llvmPackages.libclang}/lib";
}