nixpkgs/pkgs/development/tools/misc/strace/default.nix

31 lines
932 B
Nix
Raw Normal View History

2018-02-28 01:31:15 +00:00
{ stdenv, fetchurl, perl, libunwind, buildPackages }:
stdenv.mkDerivation rec {
2016-07-04 11:13:26 +01:00
name = "strace-${version}";
version = "4.26";
src = fetchurl {
url = "https://strace.io/files/${version}/${name}.tar.xz";
sha256 = "070yz8xii8gnb4psiz628zwm5srh266sfb06f7f1qzagxzz2ykbw";
};
2018-02-28 01:31:15 +00:00
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ perl ];
buildInputs = stdenv.lib.optional libunwind.supportsHost libunwind; # support -k
configureFlags = stdenv.lib.optional (!stdenv.hostPlatform.isx86) "--enable-mpers=check";
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;
meta = with stdenv.lib; {
2018-06-27 21:12:57 +01:00
homepage = https://strace.io/;
description = "A system call tracer for Linux";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ jgeerds globin ];
};
}