2012-12-01 20:28:32 +00:00
|
|
|
{ stdenv, fetchurl, libelf }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-11-21 13:51:00 +00:00
|
|
|
name = "libdwarf-20121130";
|
2012-12-01 20:28:32 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-21 13:51:00 +00:00
|
|
|
url = http://reality.sgiweb.org/davea/libdwarf-20121130.tar.gz;
|
|
|
|
sha256 = "1nfdfn5xf3n485pvpb853awyxxnvrg207i0wmrr7bhk8fcxdxbn0";
|
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;
|
2012-12-01 20:28:32 +00:00
|
|
|
};
|
|
|
|
}
|