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

29 lines
909 B
Nix
Raw Normal View History

2018-02-28 01:31:15 +00:00
{ stdenv, fetchurl, perl, libunwind, buildPackages }:
stdenv.mkDerivation rec {
pname = "strace";
2020-10-03 20:57:28 +01:00
version = "5.9";
src = fetchurl {
url = "https://strace.io/files/${version}/${pname}-${version}.tar.xz";
2020-10-03 20:57:28 +01:00
sha256 = "1nb6bm6ll6cxd6a2fc67c0qn39gbh6rkqrpv83lw6ijm8sw3wirr";
};
2018-02-28 01:31:15 +00:00
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ perl ];
buildInputs = [ perl.out ] ++ stdenv.lib.optional libunwind.supportsHost libunwind; # support -k
postPatch = "patchShebangs --host strace-graph";
configureFlags = stdenv.lib.optional (!stdenv.hostPlatform.isx86) "--enable-mpers=check";
meta = with stdenv.lib; {
2019-12-08 21:26:10 +00: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 ];
};
}