From 84c9c2ae5437cd12c34dedb6988cc76c1e312f5d Mon Sep 17 00:00:00 2001 From: Artur Cygan Date: Sun, 20 Dec 2020 19:06:18 +0100 Subject: [PATCH] xed: init at 12.0.1 --- pkgs/development/libraries/xed/default.nix | 46 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/libraries/xed/default.nix diff --git a/pkgs/development/libraries/xed/default.nix b/pkgs/development/libraries/xed/default.nix new file mode 100644 index 000000000000..1d6dcdc67ade --- /dev/null +++ b/pkgs/development/libraries/xed/default.nix @@ -0,0 +1,46 @@ +{ stdenv, fetchFromGitHub, python3Packages }: + +let + # mbuild is a custom build system used only to build xed + mbuild = python3Packages.buildPythonPackage rec { + pname = "mbuild"; + version = "0.2496-dev"; + + src = fetchFromGitHub { + owner = "intelxed"; + repo = "mbuild"; + rev = "3e8eb33aada4153c21c4261b35e5f51f6e2019e8"; + sha256 = "0yamgzkzw4v6x1a857psw9f7i62ydgd0zaqrf33dbdg8hfd2mq3q"; + }; + }; + +in stdenv.mkDerivation rec { + pname = "xed"; + version = "12.0.1"; + + src = fetchFromGitHub { + owner = "intelxed"; + repo = "xed"; + rev = version; + sha256 = "07zfff8zf29c2n0wal87hiqfq3cwcjn80zz78mz0nyjfj09nd39f"; + }; + + nativeBuildInputs = [ mbuild ]; + + buildPhase = '' + patchShebangs mfile.py + + # this will build, test and install + ./mfile.py test --prefix $out + ''; + + dontInstall = true; # already installed during buildPhase + + meta = with stdenv.lib; { + description = "Intel X86 Encoder Decoder (Intel XED)"; + homepage = "https://intelxed.github.io/"; + license = licenses.apsl20; + platforms = platforms.unix; + maintainers = with maintainers; [ arturcygan ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d0ffd9d20d2e..5e01ffa16865 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16550,6 +16550,8 @@ in xdo = callPackage ../tools/misc/xdo { }; + xed = callPackage ../development/libraries/xed { }; + xineLib = callPackage ../development/libraries/xine-lib { }; xautolock = callPackage ../misc/screensavers/xautolock { };