diff --git a/packages.nix b/packages.nix index f3376da..e0aa141 100644 --- a/packages.nix +++ b/packages.nix @@ -30,6 +30,10 @@ let }; freebsdArgs = commonArgs // { + # Sigh... + # For some reason, crane and cargo don't run the build script for FreeBSD + # It runs it with the dev shell for all 3 targets, and runs it in the + # nix packages for Linux and Windows... just not FreeBSD CARGO_BUILD_RUSTFLAGS = "-Ctarget-feature=+crt-static -Clink-args=--target=x86_64-unknown-freebsd -Clink-args=--sysroot=${freebsd-libs} -Clink-args=-L${freebsd-libs}/lib -Clink-args=-L${freebsd-libs}/usr/lib -Clink-args=-L${libpcap-freebsd}/lib";