aboutsummaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-28 10:25:45 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-28 10:25:45 +0200
commit0d8cb297809816799f5aa33d366482c46ccb8e1d (patch)
tree4e9e05956a5e891c423b501b569cd08710c557ce /default.nix
parent2197753dfdb25944e55c25d911ae6d14b8506c4d (diff)
downloadgarage-0d8cb297809816799f5aa33d366482c46ccb8e1d.tar.gz
garage-0d8cb297809816799f5aa33d366482c46ccb8e1d.zip
Nix configuration to build convert_dbbuild-convert-db
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/default.nix b/default.nix
index 7e44096c..4166ec46 100644
--- a/default.nix
+++ b/default.nix
@@ -16,6 +16,7 @@ let
name ="garage-tests";
paths = builtins.map (key: rustPkgs.workspace.${key} { compileMode = "test"; }) (builtins.attrNames rustPkgs.workspace);
});
+ build_convert_db = (target: (compile { inherit target git_version; release = true; }).workspace.garage_db { compileMode = "build"; });
in {
pkgs = {
@@ -23,6 +24,12 @@ in {
i386 = build_debug_and_release "i686-unknown-linux-musl";
arm64 = build_debug_and_release "aarch64-unknown-linux-musl";
arm = build_debug_and_release "armv6l-unknown-linux-musleabihf";
+ convert_db = {
+ amd64 = build_convert_db "x86_64-unknown-linux-musl";
+ i386 = build_convert_db "i686-unknown-linux-musl";
+ arm64 = build_convert_db "aarch64-unknown-linux-musl";
+ arm = build_convert_db "armv6l-unknown-linux-musleabihf";
+ };
};
test = {
amd64 = test (compile { inherit git_version; target = "x86_64-unknown-linux-musl"; });