3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/ltrace/default.nix
Will Dietz 3ecad27032 ltrace: fix warnings and bugs using patches from debian
For details on the patches applied, see:

https://sources.debian.org/patches/ltrace/0.7.3-6/

Disabling '-Werror' may be a problem in the future again,
but for now keep things simple now that they're fixed.
2018-05-02 13:28:11 -05:00

29 lines
794 B
Nix

{ stdenv, fetchurl, elfutils, libunwind }:
stdenv.mkDerivation rec {
name = "ltrace-0.7.3";
src = fetchurl {
url = mirror://debian/pool/main/l/ltrace/ltrace_0.7.3.orig.tar.bz2;
sha256 = "00wmbdghqbz6x95m1mcdd3wd46l6hgcr4wggdp049dbifh3qqvqf";
};
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 stdenv.lib; {
description = "Library call tracer";
homepage = https://www.ltrace.org/;
platforms = stdenv.lib.platforms.linux;
};
}