2012-12-01 21:28:32 +01:00
|
|
|
{ stdenv, fetchurl, libelf }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-10-26 13:30:34 +02:00
|
|
|
name = "libdwarf-20161021";
|
2016-09-26 04:12:47 +02:00
|
|
|
|
2012-12-01 21:28:32 +01:00
|
|
|
src = fetchurl {
|
2016-09-26 04:12:47 +02:00
|
|
|
url = "http://www.prevanders.net/${name}.tar.gz";
|
2016-10-26 13:30:34 +02:00
|
|
|
sha512 = "733523fd5c58f878d65949c1812b2f46b40c4cc3177bc780c703ec71f83675d4b84e81bc1bcca42adf69b5e122562e4ce8e9a8743af29cc6fafe78ed9f8213fd";
|
2012-12-01 21:28:32 +01:00
|
|
|
};
|
|
|
|
|
2014-11-21 14:51:00 +01:00
|
|
|
configureFlags = " --enable-shared --disable-nonshared";
|
2012-12-01 21:28:32 +01:00
|
|
|
|
2014-11-21 14:51:00 +01:00
|
|
|
preConfigure = ''
|
|
|
|
cd libdwarf
|
2012-12-01 21:28:32 +01:00
|
|
|
'';
|
|
|
|
buildInputs = [ libelf ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-11-21 14:51:00 +01:00
|
|
|
mkdir -p $out/lib $out/include
|
|
|
|
cp libdwarf.so $out/lib
|
|
|
|
cp libdwarf.h dwarf.h $out/include
|
2012-12-01 21:28:32 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-11-21 14:51:00 +01:00
|
|
|
homepage = http://reality.sgiweb.org/davea/dwarf.html;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-12-01 21:28:32 +01:00
|
|
|
};
|
|
|
|
}
|