eea252a1fd
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/strace/versions. These checks were done: - built on NixOS - ran ‘/nix/store/x7d4g7rvf9z43xjz7mc8c4nzwphghjj7-strace-4.22/bin/strace -h’ got 0 exit code - ran ‘/nix/store/x7d4g7rvf9z43xjz7mc8c4nzwphghjj7-strace-4.22/bin/strace-log-merge -h’ got 0 exit code - ran ‘/nix/store/x7d4g7rvf9z43xjz7mc8c4nzwphghjj7-strace-4.22/bin/strace-log-merge --help’ got 0 exit code - ran ‘/nix/store/x7d4g7rvf9z43xjz7mc8c4nzwphghjj7-strace-4.22/bin/strace-log-merge help’ got 0 exit code - found 4.22 with grep in /nix/store/x7d4g7rvf9z43xjz7mc8c4nzwphghjj7-strace-4.22 - directory tree listing: https://gist.github.com/4c8ab8738133d11c611ae7290d25d6fc
26 lines
824 B
Nix
26 lines
824 B
Nix
{ stdenv, fetchurl, perl, libunwind, buildPackages }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "strace-${version}";
|
|
version = "4.22";
|
|
|
|
src = fetchurl {
|
|
url = "https://strace.io/files/${version}/${name}.tar.xz";
|
|
sha256 = "17dkpnsjxmys1ydidm9wcvc3wscsz44fmlxw3dclspn9cj9d1306";
|
|
};
|
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
|
nativeBuildInputs = [ perl ];
|
|
|
|
buildInputs = stdenv.lib.optional libunwind.supportsHost [ libunwind ]; # support -k
|
|
|
|
configureFlags = stdenv.lib.optional (stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isRiscV) "--enable-mpers=check";
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://strace.io/;
|
|
description = "A system call tracer for Linux";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ jgeerds globin ];
|
|
};
|
|
}
|