2018-02-28 01:31:15 +00:00
|
|
|
{ stdenv, fetchurl, perl, libunwind, buildPackages }:
|
2004-08-04 11:12:26 +01:00
|
|
|
|
2010-01-20 10:55:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-07-04 11:13:26 +01:00
|
|
|
name = "strace-${version}";
|
2019-03-19 12:18:04 +00:00
|
|
|
version = "5.0";
|
2009-11-08 00:32:12 +00:00
|
|
|
|
2004-08-04 11:12:26 +01:00
|
|
|
src = fetchurl {
|
2018-02-26 22:50:15 +00:00
|
|
|
url = "https://strace.io/files/${version}/${name}.tar.xz";
|
2019-03-19 12:18:04 +00:00
|
|
|
sha256 = "1nj7wvsdmhpp53yffj1pnrkjn96mxrbcraa6h03wc7dqn9zdfyiv";
|
2010-01-20 10:55:30 +00:00
|
|
|
};
|
|
|
|
|
2018-02-28 01:31:15 +00:00
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ perl ];
|
2011-06-15 14:28:04 +01:00
|
|
|
|
2018-05-23 16:15:05 +01:00
|
|
|
buildInputs = stdenv.lib.optional libunwind.supportsHost libunwind; # support -k
|
2015-11-11 13:58:52 +00:00
|
|
|
|
2018-08-22 18:29:04 +01:00
|
|
|
configureFlags = stdenv.lib.optional (!stdenv.hostPlatform.isx86) "--enable-mpers=check";
|
2018-02-20 19:33:56 +00:00
|
|
|
|
2018-08-08 22:14:08 +01: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 22:43:51 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-06-27 21:12:57 +01:00
|
|
|
homepage = https://strace.io/;
|
2010-01-20 10:55:30 +00:00
|
|
|
description = "A system call tracer for Linux";
|
2018-12-29 03:27:32 +00:00
|
|
|
license = with licenses; [ lgpl21Plus gpl2Plus ]; # gpl2Plus is for the test suite
|
2013-08-06 22:43:51 +01:00
|
|
|
platforms = platforms.linux;
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with maintainers; [ globin ];
|
2004-08-04 11:12:26 +01:00
|
|
|
};
|
|
|
|
}
|