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