2012-12-01 20:28:32 +00:00
|
|
|
{ stdenv, fetchurl, libelf }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-10-26 12:30:34 +01:00
|
|
|
name = "libdwarf-20161021";
|
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-10-26 12:30:34 +01:00
|
|
|
sha512 = "733523fd5c58f878d65949c1812b2f46b40c4cc3177bc780c703ec71f83675d4b84e81bc1bcca42adf69b5e122562e4ce8e9a8743af29cc6fafe78ed9f8213fd";
|
2012-12-01 20:28:32 +00:00
|
|
|
};
|
|
|
|
|
2014-11-21 13:51:00 +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
|
|
|
|
cp libdwarf.so $out/lib
|
|
|
|
cp libdwarf.h dwarf.h $out/include
|
2012-12-01 20:28:32 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-11-21 13:51:00 +00:00
|
|
|
homepage = http://reality.sgiweb.org/davea/dwarf.html;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-12-01 20:28:32 +00:00
|
|
|
};
|
|
|
|
}
|