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