eztrace: 1-1-7 -> 1.1-11, fix build, switch to fetchFromGitLab, refactor

This commit is contained in:
legendofmiracles 2021-11-04 11:51:24 -06:00
parent dca7532635
commit 23448e8bf2
No known key found for this signature in database
GPG Key ID: 19B082B3DEFE5451

View File

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