Merge pull request #144645 from legendofmiracles/master

eztrace: 1-1-7 -> 1.1-11, fix build, switch to fetchFromGitLab, refactor
This commit is contained in:
Thiago Kenji Okada 2021-11-04 23:37:50 -03:00 committed by GitHub
commit 7673b2a2a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,31 +1,33 @@
{ lib, stdenv
, fetchurl, autoconf, gfortran
, libelf, libiberty, zlib, libbfd, libopcodes
, buildPackages
{ lib,
stdenv,
fetchFromGitLab,
gfortran,
libelf,
libiberty,
zlib,
libbfd,
libopcodes,
buildPackages,
autoreconfHook
}:
stdenv.mkDerivation rec {
version = "1.1-7";
pname = "EZTrace";
version = "1.1-11";
src = fetchurl {
url = "https://gforge.inria.fr/frs/download.php/file/37155/eztrace-${version}.tar.gz";
sha256 = "0cr2d4fdv4ljvag55dsz3rpha1jan2gc3jhr06ycyk43450pl58p";
src = fetchFromGitLab {
owner = "eztrace";
repo = "eztrace";
rev = "eztrace-${version}";
sha256 = "sha256-A6HMr4ib5Ka1lTbbTQOdq3kIdCoN/CwAKRdXdv9wpfU=";
};
# Goes past the rpl_malloc linking failure; fixes silent file breakage
preConfigure = ''
export ac_cv_func_malloc_0_nonnull=yes
substituteInPlace ./configure \
--replace "/usr/bin/file" "${buildPackages.file}/bin/file"
'';
nativeBuildInputs = [ autoconf gfortran ];
nativeBuildInputs = [ gfortran autoreconfHook ];
buildInputs = [ libelf libiberty zlib libbfd libopcodes ];
meta = {
meta = with lib; {
description = "Tool that aims at generating automatically execution trace from HPC programs";
license = lib.licenses.cecill-b;
maintainers = with lib.maintainers; [ ];
license = licenses.cecill-b;
maintainers = with maintainers; [ ];
};
}