diff options
author | Alex Auvolat <alex@adnab.me> | 2022-11-07 12:20:59 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-11-07 12:20:59 +0100 |
commit | 28d7a49f6365fadaffaa903cc10434c1ed28d564 (patch) | |
tree | 8da5b3213b7ff199af80e64af29a7a1395b9d02d /default.nix | |
parent | 3039bb5d431532f0ec907eab5e00f94acc4a3472 (diff) | |
parent | 66f2daa0259538c64508b37cec89d76a74a71a02 (diff) | |
download | garage-28d7a49f6365fadaffaa903cc10434c1ed28d564.tar.gz garage-28d7a49f6365fadaffaa903cc10434c1ed28d564.zip |
Merge branch 'main' into optimal-layout
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 39 |
1 files changed, 34 insertions, 5 deletions
diff --git a/default.nix b/default.nix index 7e44096c..60a85e2f 100644 --- a/default.nix +++ b/default.nix @@ -5,13 +5,26 @@ with import ./nix/common.nix; -let +let pkgs = import pkgsSrc { }; compile = import ./nix/compile.nix; + build_debug_and_release = (target: { - debug = (compile { inherit target git_version; release = false; }).workspace.garage { compileMode = "build"; }; - release = (compile { inherit target git_version; release = true; }).workspace.garage { compileMode = "build"; }; + debug = (compile { + inherit target git_version; + release = false; + }).workspace.garage { + compileMode = "build"; + }; + + release = (compile { + inherit target git_version; + release = true; + }).workspace.garage { + compileMode = "build"; + }; }); + test = (rustPkgs: pkgs.symlinkJoin { name ="garage-tests"; paths = builtins.map (key: rustPkgs.workspace.${key} { compileMode = "test"; }) (builtins.attrNames rustPkgs.workspace); @@ -25,9 +38,25 @@ in { arm = build_debug_and_release "armv6l-unknown-linux-musleabihf"; }; test = { - amd64 = test (compile { inherit git_version; target = "x86_64-unknown-linux-musl"; }); + amd64 = test (compile { + inherit git_version; + target = "x86_64-unknown-linux-musl"; + features = [ + "garage/bundled-libs" + "garage/k2v" + "garage/sled" + "garage/lmdb" + "garage/sqlite" + ]; + }); }; clippy = { - amd64 = (compile { inherit git_version; compiler = "clippy"; }).workspace.garage { compileMode = "build"; } ; + amd64 = (compile { + inherit git_version; + target = "x86_64-unknown-linux-musl"; + compiler = "clippy"; + }).workspace.garage { + compileMode = "build"; + }; }; } |