Add nix overrides to include lmdb and sqlite3 libraries
continuous-integration/drone/pr Build is failing Details
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Alex 2022-06-06 22:02:09 +02:00
parent e42c7bed38
commit 35544cac39
Signed by: lx
GPG Key ID: 0E496D15096376BE
1 changed files with 19 additions and 0 deletions

View File

@ -95,6 +95,25 @@ in let
features = if release then [ "kubernetes-discovery" ] else [];
};
})
/*
We are now depending on sqlite3 and lmdb to provide alternative
storage backends for Garage. But these crates don't know what
system libraries they need, so we add them here manually:
`sqlite3` for `libsqlite3-sys` and `lmdb` for `lmdb-rkv-sys`
*/
(pkgs.rustBuilder.rustLib.makeOverride {
name = "libsqlite3-sys";
overrideAttrs = drv: {
propagatedBuildInputs = drv.propagatedBuildInputs or [ ] ++ [ pkgs.sqlite ];
};
})
(pkgs.rustBuilder.rustLib.makeOverride {
name = "lmdb-rkv-sys";
overrideAttrs = drv: {
propagatedBuildInputs = drv.propagatedBuildInputs or [ ] ++ [ pkgs.lmdb ];
};
})
];
packageFun = import ./Cargo.nix;