Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
cmake,
|
|
freebsd,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libipt";
|
|
version = "2.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "intel";
|
|
repo = "libipt";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-rO2Mf2/BfKlPh1wHe0qTuyQAyqpSB/j3Q+JWpNDyNm0=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "libipt-fix-cmake-4.patch";
|
|
url = "https://github.com/intel/libipt/commit/fa7d42de25be526da532284cc8b771fdeb384f81.patch";
|
|
hash = "sha256-/jTyoGyKw29Nu27bAXmStpjOdTeGdQYpEX2rb29vSSQ=";
|
|
})
|
|
];
|
|
|
|
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";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ orivej ];
|
|
};
|
|
}
|