From b2cec71667971211b296a1dab5699de32ee796a4 Mon Sep 17 00:00:00 2001 From: Andrew Rioux Date: Mon, 20 Jan 2025 20:43:21 -0500 Subject: [PATCH] docs: added reasoning for hacky solutions --- packages.nix | 4 ++++ 1 file changed, 4 insertions(+) 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";