Compile Conduit ourselves
no more IFD
This commit is contained in:
parent
e3442bc05e
commit
77cf9d4396
5 changed files with 76 additions and 130 deletions
25
pkgs/conduit/default.nix
Normal file
25
pkgs/conduit/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fenix,
|
||||
crane,
|
||||
src,
|
||||
libiconv,
|
||||
rocksdb,
|
||||
darwin,
|
||||
rustPlatform,
|
||||
}: let
|
||||
crane' = crane.overrideToolchain fenix.stable.toolchain;
|
||||
in
|
||||
crane'.buildPackage {
|
||||
inherit src;
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [rustPlatform.bindgenHook];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [libiconv darwin.apple_sdk.frameworks.Security];
|
||||
|
||||
# Use system RocksDB
|
||||
ROCKSDB_INCLUDE_DIR = "${rocksdb}/include";
|
||||
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
|
||||
}
|
14
pkgs/default.nix
Normal file
14
pkgs/default.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{inputs, ...}: {
|
||||
perSystem = {
|
||||
pkgs,
|
||||
system,
|
||||
inputs',
|
||||
...
|
||||
}: {
|
||||
packages.conduit-next = pkgs.callPackage ./conduit {
|
||||
src = inputs.conduit-src;
|
||||
crane = inputs.crane.lib.${system};
|
||||
fenix = inputs'.fenix.packages;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue