1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 17:10:48 +00:00
nixpkgs/pkgs/development/libraries/libdwarf/default.nix

29 lines
617 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libelf }:
stdenv.mkDerivation rec {
2016-09-26 03:12:47 +01:00
name = "libdwarf-20160613";
src = fetchurl {
2016-09-26 03:12:47 +01:00
url = "http://www.prevanders.net/${name}.tar.gz";
sha256 = "1nfdfn5xf3n485pvpb853awyxxnvrg207i0wmrr7bhk8fcxdxbn0";
};
configureFlags = " --enable-shared --disable-nonshared";
preConfigure = ''
cd libdwarf
'';
buildInputs = [ libelf ];
installPhase = ''
mkdir -p $out/lib $out/include
cp libdwarf.so $out/lib
cp libdwarf.h dwarf.h $out/include
'';
meta = {
homepage = http://reality.sgiweb.org/davea/dwarf.html;
platforms = stdenv.lib.platforms.linux;
};
}