2017-07-28 07:10:59 -07:00
|
|
|
{ lib, stdenv, fetchurl, m4, zlib, bzip2, bison, flex, gettext, xz, setupDebugInfoDirs }:
|
2009-02-17 08:42:51 -08:00
|
|
|
|
2012-01-05 15:15:48 -08:00
|
|
|
# TODO: Look at the hardcoded paths to kernel, modules etc.
|
2009-02-17 08:42:51 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "elfutils";
|
2019-02-15 12:05:28 -08:00
|
|
|
version = "0.176";
|
2013-03-17 02:26:44 -07:00
|
|
|
|
2009-02-17 08:42:51 -08:00
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "https://sourceware.org/elfutils/ftp/${version}/${pname}-${version}.tar.bz2";
|
2019-02-15 12:05:28 -08:00
|
|
|
sha256 = "08qhrl4g6qqr4ga46jhh78y56a47p3msa5b2x1qhzbxhf71lfmzb";
|
2009-02-17 08:42:51 -08:00
|
|
|
};
|
|
|
|
|
2019-09-07 00:20:19 -07:00
|
|
|
patches = [ ./debug-info-from-env.patch ];
|
2017-07-28 07:10:59 -07:00
|
|
|
|
2016-02-26 09:38:15 -08:00
|
|
|
hardeningDisable = [ "format" ];
|
2015-12-22 17:59:47 -08:00
|
|
|
|
2012-01-06 08:45:14 -08:00
|
|
|
# We need bzip2 in NativeInputs because otherwise we can't unpack the src,
|
|
|
|
# as the host-bzip2 will be in the path.
|
2016-01-15 05:59:53 -08:00
|
|
|
nativeBuildInputs = [ m4 bison flex gettext bzip2 ];
|
|
|
|
buildInputs = [ zlib bzip2 xz ];
|
|
|
|
|
2017-07-28 07:10:59 -07:00
|
|
|
propagatedNativeBuildInputs = [ setupDebugInfoDirs ];
|
|
|
|
|
2016-01-15 05:59:53 -08:00
|
|
|
configureFlags =
|
|
|
|
[ "--program-prefix=eu-" # prevent collisions with binutils
|
|
|
|
"--enable-deterministic-archives"
|
|
|
|
];
|
2012-01-06 08:45:14 -08:00
|
|
|
|
2016-01-15 05:59:53 -08:00
|
|
|
enableParallelBuilding = true;
|
2013-04-05 15:45:25 -07:00
|
|
|
|
2018-08-08 14:10:14 -07:00
|
|
|
doCheck = false; # fails 3 out of 174 tests
|
|
|
|
doInstallCheck = false; # fails 70 out of 174 tests
|
|
|
|
|
2009-02-17 08:42:51 -08:00
|
|
|
meta = {
|
2017-01-08 14:30:05 -08:00
|
|
|
homepage = https://sourceware.org/elfutils/;
|
2016-01-15 05:59:53 -08:00
|
|
|
description = "A set of utilities to handle ELF objects";
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.gpl3;
|
2016-11-20 09:05:18 -08:00
|
|
|
maintainers = [ lib.maintainers.eelco ];
|
2009-02-17 08:42:51 -08:00
|
|
|
};
|
|
|
|
}
|