2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python3Packages }:
|
2020-12-27 14:24:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
# mbuild is a custom build system used only to build xed
|
|
|
|
mbuild = python3Packages.buildPythonPackage rec {
|
|
|
|
pname = "mbuild";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "2022.07.28";
|
2020-12-27 14:24:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "intelxed";
|
|
|
|
repo = "mbuild";
|
2022-09-14 18:05:37 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-eOAqmoPotdXGcBmrD9prXph4XOL6noJU6GYT/ud/VXk=";
|
2020-12-27 14:24:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "xed";
|
2022-09-14 18:05:37 +00:00
|
|
|
version = "2022.08.11";
|
2020-12-27 14:24:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "intelxed";
|
|
|
|
repo = "xed";
|
2022-09-14 18:05:37 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-Iil+dfjuWYPbzmSjgwKTKScSE/IsWuHEKQ5HsBJDqWM=";
|
2020-12-27 14:24:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ mbuild ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
patchShebangs mfile.py
|
|
|
|
|
|
|
|
# this will build, test and install
|
|
|
|
./mfile.py test --prefix $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontInstall = true; # already installed during buildPhase
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
2020-12-27 14:24:52 +00:00
|
|
|
description = "Intel X86 Encoder Decoder (Intel XED)";
|
|
|
|
homepage = "https://intelxed.github.io/";
|
2022-01-07 04:07:37 +00:00
|
|
|
license = licenses.asl20;
|
2020-12-27 14:24:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ arturcygan ];
|
|
|
|
};
|
|
|
|
}
|