Revert "libdwarf: upgrade to the latest version"

This commit is contained in:
Edward Tjörnhammar 2014-11-21 14:51:00 +01:00
parent 97f35cf29a
commit 683e4d747a

View File

@ -1,31 +1,27 @@
{ stdenv, fetchurl, libelf }: { stdenv, fetchurl, libelf }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libdwarf-20140805"; name = "libdwarf-20121130";
src = fetchurl { src = fetchurl {
url = "http://www.prevanders.net/${name}.tar.gz"; url = http://reality.sgiweb.org/davea/libdwarf-20121130.tar.gz;
sha256 = "1z5xz0w1yvk8swcqzx4dvnig94j51pns39jmipv5rl20qahik0nl"; sha256 = "1nfdfn5xf3n485pvpb853awyxxnvrg207i0wmrr7bhk8fcxdxbn0";
}; };
configureFlags = "--enable-shared"; configureFlags = " --enable-shared --disable-nonshared";
preBuild = '' preConfigure = ''
export LD_LIBRARY_PATH=`pwd`/libdwarf cd libdwarf
''; '';
buildInputs = [ libelf ]; buildInputs = [ libelf ];
installPhase = '' installPhase = ''
mkdir -p $out/lib $out/include $out/bin mkdir -p $out/lib $out/include
cp ./dwarfdump2/dwarfdump $out/bin/dwarfdump2 cp libdwarf.so $out/lib
cp ./dwarfdump/dwarfdump $out/bin/dwarfdump cp libdwarf.h dwarf.h $out/include
cp libdwarf/libdwarf.so $out/lib
cp libdwarf/libdwarf.h libdwarf/dwarf.h $out/include
''; '';
meta = { meta = {
homepage = http://www.prevanders.net/dwarf.html; homepage = http://reality.sgiweb.org/davea/dwarf.html;
license = stdenv.lib.licenses.gpl2;
}; };
} }