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.
This commit is contained in:
Jade Lovelace
2025-03-24 17:30:44 -07:00
parent e735fed7a7
commit ef09fa1092
3 changed files with 12 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -0,0 +1,10 @@
{ linuxPackages }:
linuxPackages.systemtap.override {
withStap = false;
}
// {
meta = linuxPackages.systemtap.meta // {
description = "Build USDT tracepoints with the 'dtrace' executable on Linux";
mainProgram = "dtrace";
};
}
@@ -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