{ 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 ]; }; }