From 56d2260fcca433d60c33c129e2016ee81b0809bf Mon Sep 17 00:00:00 2001 From: Audrey Dutcher Date: Mon, 24 Feb 2025 00:16:28 -0700 Subject: [PATCH] libipt: fix linkage on FreeBSD. this fixes the gdb build --- pkgs/by-name/li/libipt/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/li/libipt/package.nix b/pkgs/by-name/li/libipt/package.nix index 8b2baaad6ce1..33e01b9d7a83 100644 --- a/pkgs/by-name/li/libipt/package.nix +++ b/pkgs/by-name/li/libipt/package.nix @@ -20,6 +20,10 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; buildInputs = lib.optional stdenv.hostPlatform.isFreeBSD freebsd.libstdthreads; + env = lib.optionalAttrs stdenv.hostPlatform.isFreeBSD { + NIX_LDFLAGS = "-lstdthreads"; + }; + meta = with lib; { description = "Intel Processor Trace decoder library"; homepage = "https://github.com/intel/libipt";