diff options
author | Will Dietz <w@wdtz.org> | 2018-05-02 13:24:27 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-05-02 13:28:11 -0500 |
commit | 3ecad270323a6f05879be9786579da6dd4ed91c3 (patch) | |
tree | e34c884236420301b57f949ff93b1f744d42ca5d /pkgs/development/tools | |
parent | 42d3b536c65176ad97d0c3047f563823b2235201 (diff) | |
download | nixlib-3ecad270323a6f05879be9786579da6dd4ed91c3.tar nixlib-3ecad270323a6f05879be9786579da6dd4ed91c3.tar.gz nixlib-3ecad270323a6f05879be9786579da6dd4ed91c3.tar.bz2 nixlib-3ecad270323a6f05879be9786579da6dd4ed91c3.tar.lz nixlib-3ecad270323a6f05879be9786579da6dd4ed91c3.tar.xz nixlib-3ecad270323a6f05879be9786579da6dd4ed91c3.tar.zst nixlib-3ecad270323a6f05879be9786579da6dd4ed91c3.zip |
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.
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/misc/ltrace/default.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/tools/misc/ltrace/default.nix b/pkgs/development/tools/misc/ltrace/default.nix index 66fbed514dc5..15eac37a53a9 100644 --- a/pkgs/development/tools/misc/ltrace/default.nix +++ b/pkgs/development/tools/misc/ltrace/default.nix @@ -10,10 +10,14 @@ stdenv.mkDerivation rec { buildInputs = [ elfutils libunwind ]; - preConfigure = - '' - configureFlags="--disable-werror" - makeFlagsArray=(INSTALL="install -c") + 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; { |