2018-02-27 17:31:15 -08:00
|
|
|
{ stdenv, fetchurl, perl, libunwind, buildPackages }:
|
2004-08-04 03:12:26 -07:00
|
|
|
|
2010-01-20 02:55:30 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "strace";
|
2020-04-11 04:42:08 -07:00
|
|
|
version = "5.6";
|
2009-11-07 16:32:12 -08:00
|
|
|
|
2004-08-04 03:12:26 -07:00
|
|
|
src = fetchurl {
|
2019-08-15 05:41:18 -07:00
|
|
|
url = "https://strace.io/files/${version}/${pname}-${version}.tar.xz";
|
2020-04-11 04:42:08 -07:00
|
|
|
sha256 = "008v3xacgv8hw2gpqibacxs47j23161mmibf2qh9xv86mvp6i68q";
|
2010-01-20 02:55:30 -08:00
|
|
|
};
|
|
|
|
|
2018-02-27 17:31:15 -08:00
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
2012-12-28 10:20:09 -08:00
|
|
|
nativeBuildInputs = [ perl ];
|
2011-06-15 06:28:04 -07:00
|
|
|
|
2018-05-23 08:15:05 -07:00
|
|
|
buildInputs = stdenv.lib.optional libunwind.supportsHost libunwind; # support -k
|
2015-11-11 05:58:52 -08:00
|
|
|
|
2020-04-02 13:24:50 -07:00
|
|
|
postPatch = "patchShebangs strace-graph";
|
|
|
|
|
2018-08-22 10:29:04 -07:00
|
|
|
configureFlags = stdenv.lib.optional (!stdenv.hostPlatform.isx86) "--enable-mpers=check";
|
2018-02-20 11:33:56 -08:00
|
|
|
|
2018-08-08 14:14:08 -07:00
|
|
|
# fails 1 out of 523 tests with
|
|
|
|
# "strace-k.test: failed test: ../../strace -e getpid -k ../stack-fcall output mismatch"
|
|
|
|
doCheck = false;
|
|
|
|
|
2013-08-06 14:43:51 -07:00
|
|
|
meta = with stdenv.lib; {
|
2019-12-08 13:26:10 -08:00
|
|
|
homepage = "https://strace.io/";
|
2010-01-20 02:55:30 -08:00
|
|
|
description = "A system call tracer for Linux";
|
2018-12-28 19:27:32 -08:00
|
|
|
license = with licenses; [ lgpl21Plus gpl2Plus ]; # gpl2Plus is for the test suite
|
2013-08-06 14:43:51 -07:00
|
|
|
platforms = platforms.linux;
|
2019-03-12 15:45:33 -07:00
|
|
|
maintainers = with maintainers; [ globin ];
|
2004-08-04 03:12:26 -07:00
|
|
|
};
|
|
|
|
}
|