10 # mbuild is a custom build system used only to build xed
11 mbuild = python3Packages.buildPythonPackage rec {
13 version = "2022.07.28";
15 src = fetchFromGitHub {
19 sha256 = "sha256-nVHHiaPbf+b+RntjUGjLLGS53e6c+seXIBx7AcTtiWU=";
24 stdenv.mkDerivation rec {
26 version = "2024.02.22";
28 src = fetchFromGitHub {
32 sha256 = "sha256-LF4iJ1/Z3OifCiir/kU3ufZqtiRLeaJeAwuBqP2BCF4=";
37 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.bintools ];
40 patchShebangs mfile.py
42 # this will build, test and install
43 ./mfile.py test --prefix $out
46 cp ./obj/wkit/examples/obj/xed $out/bin/
49 dontInstall = true; # already installed during buildPhase
52 broken = stdenv.hostPlatform.isAarch64;
53 description = "Intel X86 Encoder Decoder (Intel XED)";
54 homepage = "https://intelxed.github.io/";
55 license = licenses.asl20;
56 platforms = platforms.unix;
57 maintainers = with maintainers; [ arturcygan ];