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

31 lines
982 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 = "5.0";
src = fetchurl {
url = "https://strace.io/files/${version}/${name}.tar.xz";
sha256 = "1nj7wvsdmhpp53yffj1pnrkjn96mxrbcraa6h03wc7dqn9zdfyiv";
};
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 = with licenses; [ lgpl21Plus gpl2Plus ]; # gpl2Plus is for the test suite
platforms = platforms.linux;
maintainers = with maintainers; [ globin ];
};
}