2012-12-01 20:28:32 +00:00
|
|
|
{ stdenv, fetchurl, libelf }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-12-07 17:25:04 +00:00
|
|
|
name = "libdwarf-20161124";
|
2016-09-26 03:12:47 +01:00
|
|
|
|
2012-12-01 20:28:32 +00:00
|
|
|
src = fetchurl {
|
2016-09-26 03:12:47 +01:00
|
|
|
url = "http://www.prevanders.net/${name}.tar.gz";
|
2016-12-07 17:25:04 +00:00
|
|
|
sha512 = "38e480bce5ae8273fd585ec1d8ba94dc3e865a0ef3fcfcf38b5d92fa1ce41f8b"
|
|
|
|
+ "8c95a7cf8a6e69e7c6f638a3cc56ebbfb37b6317047309725fa17e7929096799";
|
2012-12-01 20:28:32 +00:00
|
|
|
};
|
|
|
|
|
2016-12-07 17:25:04 +00:00
|
|
|
configureFlags = [ "--enable-shared" "--disable-nonshared" ];
|
2012-12-01 20:28:32 +00:00
|
|
|
|
2014-11-21 13:51:00 +00:00
|
|
|
preConfigure = ''
|
|
|
|
cd libdwarf
|
2012-12-01 20:28:32 +00:00
|
|
|
'';
|
|
|
|
buildInputs = [ libelf ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-11-21 13:51:00 +00:00
|
|
|
mkdir -p $out/lib $out/include
|
2016-12-08 18:34:25 +00:00
|
|
|
cp libdwarf.so.1 $out/lib
|
|
|
|
ln -s libdwarf.so.1 $out/lib/libdwarf.so
|
2014-11-21 13:51:00 +00:00
|
|
|
cp libdwarf.h dwarf.h $out/include
|
2012-12-01 20:28:32 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2016-12-07 17:25:04 +00:00
|
|
|
homepage = https://www.prevanders.net/dwarf.html;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-12-01 20:28:32 +00:00
|
|
|
};
|
|
|
|
}
|