2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, requireFile, unzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "iaca";
|
|
|
|
version = "3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = requireFile {
|
2021-12-06 16:07:01 +00:00
|
|
|
name = "iaca-version-v${version}-lin64.zip";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0qd81bxg269cwwvfmdp266kvhcl3sdvhrkfqdrbmanawk0w7lvp1";
|
|
|
|
url = "https://software.intel.com/en-us/articles/intel-architecture-code-analyzer-download";
|
|
|
|
};
|
|
|
|
unpackCmd = ''${unzip}/bin/unzip "$src"'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp iaca $out/bin
|
2022-06-16 17:23:12 +00:00
|
|
|
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 $out/bin/iaca
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Intel Architecture Code Analyzer";
|
|
|
|
homepage = "https://software.intel.com/en-us/articles/intel-architecture-code-analyzer/";
|
2023-02-02 18:25:31 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.unfree;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ kazcw ];
|
|
|
|
};
|
|
|
|
}
|