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:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user