Commit ef09fa10 authored by Jade Lovelace's avatar Jade Lovelace
Browse files

systemtap-sdt: init

This is an API-stable alias for "systemtap *just* for creating trace
points". The use case for this is that the main systemtap package has an
annoyingly large closure size of Linux version dependent stuff, which is
unnecessary for building trace points.

I am adding this after needing the same override for Lix.
parent e735fed7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ let
    else
      "2.0-0.lib";

  systemtap' = buildPackages.linuxPackages.systemtap.override { withStap = false; };
  systemtap' = buildPackages.systemtap-sdt;

  withDtrace =
    lib.meta.availableOn stdenv.buildPlatform systemtap'
+10 −0
Original line number Diff line number Diff line
{ linuxPackages }:
linuxPackages.systemtap.override {
  withStap = false;
}
// {
  meta = linuxPackages.systemtap.meta // {
    description = "Build USDT tracepoints with the 'dtrace' executable on Linux";
    mainProgram = "dtrace";
  };
}
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
  gnumake,
  python3,
  nixosTests,
  withStap ? true, # avoid cyclic dependency with glib
  withStap ? true, # avoid cyclic dependency with glib, reduce closure size substantially
}:

let