nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 28 lines 920 B view raw
1{ lib, stdenv, fetchurl, perl, libunwind, buildPackages }: 2 3stdenv.mkDerivation rec { 4 pname = "strace"; 5 version = "5.17"; 6 7 src = fetchurl { 8 url = "https://strace.io/files/${version}/${pname}-${version}.tar.xz"; 9 sha256 = "sha256-X7KY29EzH9HhvJTFwyOVhg03YQG4fGzT0bqfmqFcFh8="; 10 }; 11 12 depsBuildBuild = [ buildPackages.stdenv.cc ]; 13 nativeBuildInputs = [ perl ]; 14 15 # On RISC-V platforms, LLVM's libunwind implementation is unsupported by strace. 16 # The build will silently fall back and -k will not work on RISC-V. 17 buildInputs = [ libunwind ]; # support -k 18 19 configureFlags = [ "--enable-mpers=check" ]; 20 21 meta = with lib; { 22 homepage = "https://strace.io/"; 23 description = "A system call tracer for Linux"; 24 license = with licenses; [ lgpl21Plus gpl2Plus ]; # gpl2Plus is for the test suite 25 platforms = platforms.linux; 26 maintainers = with maintainers; [ globin ma27 qyliss ]; 27 }; 28}