I’m having trouble packaging a python package. The python package is built using Maturin
{
pkgs,
lib,
buildPythonPackage,
rustPlatform,
pkg-config,
openssl,
cmake
}:
buildPythonPackage rec {
pname = "bqskitrs";
version = "0.4.1";
pyproject = true;
src = pkgs.fetchFromGitHub {
owner = "BQSKit";
repo = "bqskitrs";
rev = "${version}";
hash = "sha256-0HHn+jymcAGBtpRmKVzvm+IjN79VxnstF4XeDbesMws=";
};
doCheck = false;
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
};
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
nativeBuildInputs = with rustPlatform; [ cmake cargoSetupHook maturinBuildHook pkg-config ];
buildInputs = [ openssl ];
dontUseCmakeConfigure = true;
env = {
RUST_BACKTRACE = true;
};
}
The build fails with error “CMake Error: The source directory “/build/source/ceres/ceres-sys/ceres-solver” does not appear to contain CMakeLists.txt.” and I’m not really sure how to proceed from here. I would vastly appreciate if someone could provide some help or point to some documentation I can read through.