2018-02-28 01:31:15 +00:00
|
|
|
{ stdenv, fetchurl, perl, libunwind, buildPackages }:
|
2004-08-04 10:12:26 +00:00
|
|
|
|
2010-01-20 10:55:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-07-04 10:13:26 +00:00
|
|
|
name = "strace-${version}";
|
2018-06-17 17:43:16 +00:00
|
|
|
version = "4.23";
|
2009-11-08 00:32:12 +00:00
|
|
|
|
2004-08-04 10:12:26 +00:00
|
|
|
src = fetchurl {
|
2018-02-26 22:50:15 +00:00
|
|
|
url = "https://strace.io/files/${version}/${name}.tar.xz";
|
2018-06-17 17:43:16 +00:00
|
|
|
sha256 = "1bcsq2gbpcb81ayryvn56a6kjx42fc21la6qgds35n0xbybacq3q";
|
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 13:28:04 +00:00
|
|
|
|
2018-05-23 15:15:05 +00:00
|
|
|
buildInputs = stdenv.lib.optional libunwind.supportsHost libunwind; # support -k
|
2015-11-11 13:58:52 +00:00
|
|
|
|
2018-02-28 01:31:15 +00:00
|
|
|
configureFlags = stdenv.lib.optional (stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isRiscV) "--enable-mpers=check";
|
2018-02-20 19:33:56 +00:00
|
|
|
|
2013-08-06 21:43:51 +00:00
|
|
|
meta = with stdenv.lib; {
|
2018-02-26 22:50:15 +00:00
|
|
|
homepage = http://strace.io/;
|
2010-01-20 10:55:30 +00:00
|
|
|
description = "A system call tracer for Linux";
|
2013-08-06 21:43:51 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
2018-01-17 05:13:23 +00:00
|
|
|
maintainers = with maintainers; [ jgeerds globin ];
|
2004-08-04 10:12:26 +00:00
|
|
|
};
|
|
|
|
}
|