1cec730c39
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/libdwarf/versions. These checks were done: - built on NixOS - 0 of 0 passed binary check by having a zero exit code. - 0 of 0 passed binary check by having the new version present in output. - directory tree listing: https://gist.github.com/f01c7fbc7b0fe38bc2acb32c6c50579a - du listing: https://gist.github.com/bdb3dce51992e14599317260f681383e
54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{ stdenv, fetchurl, libelf }:
|
|
|
|
let
|
|
version = "20180527";
|
|
src = fetchurl {
|
|
url = "https://www.prevanders.net/libdwarf-${version}.tar.gz";
|
|
# Upstream displays this hash broken into three parts:
|
|
sha512 = "02f8024bb9959c91a1fe322459f7587a589d096595"
|
|
+ "6d643921a173e6f9e0a184db7aef66f0fd2548d669"
|
|
+ "5be7f9ee368f1cc8940cea4ddda01ff99d28bbf1fe58";
|
|
};
|
|
meta = {
|
|
homepage = https://www.prevanders.net/dwarf.html;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
|
|
in rec {
|
|
libdwarf = stdenv.mkDerivation rec {
|
|
name = "libdwarf-${version}";
|
|
|
|
configureFlags = [ "--enable-shared" "--disable-nonshared" ];
|
|
|
|
preConfigure = ''
|
|
cd libdwarf
|
|
'';
|
|
buildInputs = [ libelf ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/lib $out/include
|
|
cp libdwarf.so.1 $out/lib
|
|
ln -s libdwarf.so.1 $out/lib/libdwarf.so
|
|
cp libdwarf.h dwarf.h $out/include
|
|
'';
|
|
|
|
inherit meta src;
|
|
};
|
|
|
|
dwarfdump = stdenv.mkDerivation rec {
|
|
name = "dwarfdump-${version}";
|
|
|
|
preConfigure = ''
|
|
cd dwarfdump
|
|
'';
|
|
|
|
buildInputs = [ libelf libdwarf ];
|
|
|
|
installPhase = ''
|
|
install -m755 -D dwarfdump $out/bin/dwarfdump
|
|
'';
|
|
|
|
inherit meta src;
|
|
};
|
|
}
|