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