3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/strace/default.nix

31 lines
984 B
Nix
Raw Normal View History

2018-02-28 01:31:15 +00:00
{ stdenv, fetchurl, perl, libunwind, buildPackages }:
stdenv.mkDerivation rec {
pname = "strace";
2019-10-03 20:16:09 +01:00
version = "5.3";
src = fetchurl {
url = "https://strace.io/files/${version}/${pname}-${version}.tar.xz";
2019-10-03 20:16:09 +01:00
sha256 = "0ix06z4vnc49mv76f22kixz8dsh7daqv9mpgwcgl0mlnfjc124vc";
};
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 ];
};
}