1 { lib, stdenv, fetchFromGitHub, cmake, freebsd }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-tyOheitSlccf/n3mklGL2oAKLBKYT60LSLre9/G/b9Q=";
14 nativeBuildInputs = [ cmake ];
15 buildInputs = lib.optional stdenv.hostPlatform.isFreeBSD freebsd.libstdthreads;
18 description = "Intel Processor Trace decoder library";
19 homepage = "https://github.com/intel/libipt";
20 license = licenses.bsd3;
21 platforms = platforms.unix;
22 maintainers = with maintainers; [ orivej ];