Hey just stumbled about your template for rust projects. i was wondering where i would pass non rust dependencies when i want to run nix build
? my project needs openssl
and pkg-config
.
buildInputs
Already tried that. Build still fails, saying it can't find pkgconfig
. Here's how i defined it:
# Rust package
packages.default = pkgs.rustPlatform.buildRustPackage {
inherit (cargoToml.package) name version;
buildInputs = [
pkgs.pkg-config
pkgs.openssl
];
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
};
I believe you are looking for nativeBuildInputs
Last updated: Nov 15 2024 at 12:33 UTC