nixpkgs-suyu/pkgs/development/tools/misc/ltrace/default.nix

30 lines
828 B
Nix
Raw Normal View History

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