2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl, libunwind, buildPackages }:
|
2004-08-04 11:12:26 +01:00
|
|
|
|
2010-01-20 10:55:30 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "strace";
|
2021-02-17 22:36:17 +00:00
|
|
|
version = "5.11";
|
2009-11-08 00:32:12 +00:00
|
|
|
|
2004-08-04 11:12:26 +01:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://strace.io/files/${version}/${pname}-${version}.tar.xz";
|
2021-02-17 22:36:17 +00:00
|
|
|
sha256 = "sha256-/+NAsQwUWg+Fc0Jx6czlZFfSPyGn6lkxqzL4z055OHk=";
|
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
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
buildInputs = [ perl.out ] ++ lib.optional libunwind.supportsHost libunwind; # support -k
|
2015-11-11 13:58:52 +00:00
|
|
|
|
2020-06-25 01:53:07 +01:00
|
|
|
postPatch = "patchShebangs --host strace-graph";
|
2020-04-02 21:24:50 +01:00
|
|
|
|
2021-01-06 08:11:55 +00:00
|
|
|
configureFlags = [ "--enable-mpers=check" ];
|
2018-02-20 19:33:56 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2019-12-08 21:26:10 +00: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;
|
2020-12-14 11:04:54 +00:00
|
|
|
maintainers = with maintainers; [ globin ma27 ];
|
2004-08-04 11:12:26 +01:00
|
|
|
};
|
|
|
|
}
|