nixpkgs/pkgs/development/tools/iaca/3.0.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
898 B
Nix
Raw Normal View History

{ lib, stdenv, requireFile, unzip }:
2018-04-10 16:24:46 +00:00
stdenv.mkDerivation rec {
pname = "iaca";
version = "3.0";
2018-04-10 16:24:46 +00:00
src = requireFile {
name = "iaca-version-v${version}-lin64.zip";
2018-04-10 16:24:46 +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
patchelf --set-interpreter ${stdenv.cc.libc}/lib/ld-linux-x86-64.so.2 $out/bin/iaca
2018-04-10 16:24:46 +00:00
'';
meta = with lib; {
2018-04-10 16:24:46 +00:00
description = "Intel Architecture Code Analyzer";
homepage = "https://software.intel.com/en-us/articles/intel-architecture-code-analyzer/";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
2018-04-10 16:24:46 +00:00
license = licenses.unfree;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ kazcw ];
};
}