libipt: Add libstdthreads dependency on FreeBSD

This lib is part of the FreeBSD base system, but is not included in the
stdenv.
This commit is contained in:
Audrey Dutcher 2024-07-19 22:21:57 -07:00
parent 488168b7c1
commit df7a52b48a

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, cmake }: { lib, stdenv, fetchFromGitHub, cmake, freebsd }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libipt"; pname = "libipt";
@ -12,6 +12,7 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = lib.optional stdenv.isFreeBSD freebsd.libstdthreads;
meta = with lib; { meta = with lib; {
description = "Intel Processor Trace decoder library"; description = "Intel Processor Trace decoder library";