1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 23:24:35 +00:00
nixpkgs/pkgs/development/tools/misc/strace/default.nix
Will Dietz 8989a6b0f7 strace: disable mpers (multiple personality) support on aarch64 to fix
https://hydra.nixos.org/build/69542376

[dezgeg: changed to --enable-mpers=check instead of --enable-mpers=no,
which makes it probe at build-time whether a certain personality is
supported and enable it only if the probe succeeded, instead of
unconditionally disabling it. Should be more future-proof.]
2018-02-21 16:57:39 +02:00

26 lines
691 B
Nix

{ stdenv, fetchurl, perl, libunwind }:
stdenv.mkDerivation rec {
name = "strace-${version}";
version = "4.21";
src = fetchurl {
url = "mirror://sourceforge/strace/${name}.tar.xz";
sha256 = "1dvrwi6v9j6b9j6852zzlc61hxgiciadi1xsl89wzbzqlkxnahbd";
};
nativeBuildInputs = [ perl ];
buildInputs = [ libunwind ]; # support -k
configureFlags = stdenv.lib.optional stdenv.hostPlatform.isAarch64 "--enable-mpers=check";
meta = with stdenv.lib; {
homepage = http://strace.sourceforge.net/;
description = "A system call tracer for Linux";
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = with maintainers; [ jgeerds globin ];
};
}