nixpkgs/pkgs/by-name/st/strace/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, perl, libunwind, buildPackages, gitUpdater, elfutils }:
stdenv.mkDerivation rec {
pname = "strace";
version = "6.12";
src = fetchurl {
url = "https://strace.io/files/${version}/${pname}-${version}.tar.xz";
hash = "sha256-xH2pO+RbYFX03HQdfyDvr1DKEBYKWxAMEJspT9nAvf4=";
};
2024-11-06 13:10:36 +00:00
separateDebugInfo = true;
2018-02-28 01:31:15 +00:00
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = [ perl ];
enableParallelBuilding = true;
# libunwind for -k.
# On RISC-V platforms, LLVM's libunwind implementation is unsupported by strace.
# The build will silently fall back and -k will not work on RISC-V.
buildInputs = [ libunwind ]
# -kk
++ lib.optional (lib.meta.availableOn stdenv.hostPlatform elfutils) elfutils;
2024-07-27 03:50:02 +00:00
configureFlags = [ "--enable-mpers=check" ]
++ lib.optional stdenv.cc.isClang "CFLAGS=-Wno-unused-function";
passthru.updateScript = gitUpdater {
# No nicer place to find latest release.
url = "https://github.com/strace/strace.git";
rev-prefix = "v";
};
meta = with lib; {
2019-12-08 21:26:10 +00:00
homepage = "https://strace.io/";
description = "System call tracer for Linux";
license = with licenses; [ lgpl21Plus gpl2Plus ]; # gpl2Plus is for the test suite
platforms = platforms.linux;
maintainers = with maintainers; [ globin ma27 qyliss ];
2023-10-10 10:51:10 +00:00
mainProgram = "strace";
};
}