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
100 lines
1.9 KiB
Nix
100 lines
1.9 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
llvmPackages,
|
|
installShellFiles,
|
|
nix-update-script,
|
|
}:
|
|
|
|
let
|
|
# mbuild is a custom build system used only to build xed
|
|
mbuild = python3Packages.buildPythonPackage rec {
|
|
pname = "mbuild";
|
|
version = "2024.11.04";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "intelxed";
|
|
repo = "mbuild";
|
|
tag = "v${version}";
|
|
hash = "sha256-iQVykBG3tEPxI1HmqBkvO1q+K8vi64qBfVC63/rcTOk=";
|
|
};
|
|
|
|
build-system = with python3Packages; [ setuptools ];
|
|
|
|
meta = {
|
|
description = "Python-based build system used for building XED";
|
|
homepage = "https://github.com/intelxed/mbuild";
|
|
license = lib.licenses.asl20;
|
|
};
|
|
};
|
|
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "xed";
|
|
version = "2025.06.08";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "intelxed";
|
|
repo = "xed";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-FXVWCq7ykuSsVx8iB7WkFD7DDq6o/4bgsS0YJQWE+XM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs mfile.py
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
mbuild
|
|
installShellFiles
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.bintools ];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
# this will build, test and install
|
|
./mfile.py test --prefix $out
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
./mfile.py examples
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
installBin obj/wkit/examples/obj/xed
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = {
|
|
inherit mbuild;
|
|
updateScript = nix-update-script {
|
|
extraArgs = [
|
|
"--subpackage"
|
|
"mbuild"
|
|
];
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
broken = stdenv.hostPlatform.isAarch64;
|
|
description = "Intel X86 Encoder Decoder (Intel XED)";
|
|
homepage = "https://intelxed.github.io/";
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.unix;
|
|
maintainers = with lib.maintainers; [ arturcygan ];
|
|
};
|
|
})
|