2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, elfutils, libunwind }:
|
2007-11-03 08:19:00 +00:00
|
|
|
|
2021-06-20 10:34:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ltrace";
|
|
|
|
version = "0.7.3";
|
2010-07-29 18:55:16 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-20 10:34:30 +00:00
|
|
|
url = "mirror://debian/pool/main/l/${pname}/${pname}_${version}.orig.tar.bz2";
|
2014-04-09 10:17:40 +00:00
|
|
|
sha256 = "00wmbdghqbz6x95m1mcdd3wd46l6hgcr4wggdp049dbifh3qqvqf";
|
2010-07-29 18:55:16 +00:00
|
|
|
};
|
|
|
|
|
2018-02-27 06:39:15 +00:00
|
|
|
buildInputs = [ elfutils libunwind ];
|
2010-07-29 18:55:16 +00:00
|
|
|
|
2018-05-02 18:24:27 +00:00
|
|
|
prePatch = let
|
|
|
|
debian = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "mirror://debian/pool/main/l/ltrace/ltrace_0.7.3-6.debian.tar.xz";
|
2018-05-02 18:24:27 +00:00
|
|
|
sha256 = "0xc4pfd8qw53crvdxr29iwl8na53zmknca082kziwpvlzsick4kp";
|
|
|
|
};
|
|
|
|
in ''
|
|
|
|
tar xf '${debian}'
|
|
|
|
patches="$patches $(cat debian/patches/series | sed 's|^|debian/patches/|')"
|
2010-07-29 18:55:16 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2010-07-29 18:55:16 +00:00
|
|
|
description = "Library call tracer";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.ltrace.org/";
|
2018-11-08 20:26:29 +00:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
2018-11-08 19:40:37 +00:00
|
|
|
license = licenses.gpl2;
|
2010-07-29 18:55:16 +00:00
|
|
|
};
|
2007-11-03 08:19:00 +00:00
|
|
|
}
|