mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
iaca: cleanup with lib
This commit is contained in:
parent
2846817847
commit
ea25bea65a
@ -1,20 +1,24 @@
|
||||
{ lib, stdenv, requireFile, unzip }:
|
||||
with lib;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "iaca-3.0";
|
||||
pname = "iaca";
|
||||
version = "3.0";
|
||||
|
||||
src = requireFile {
|
||||
name = "iaca-version-v3.0-lin64.zip";
|
||||
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.glibc}/lib/ld-linux-x86-64.so.2 $out/bin/iaca
|
||||
'';
|
||||
meta = {
|
||||
|
||||
meta = with lib; {
|
||||
description = "Intel Architecture Code Analyzer";
|
||||
homepage = "https://software.intel.com/en-us/articles/intel-architecture-code-analyzer/";
|
||||
license = licenses.unfree;
|
||||
|
Loading…
Reference in New Issue
Block a user