diff --git a/pkgs/by-name/gl/glib/package.nix b/pkgs/by-name/gl/glib/package.nix index 5556e85f8566..ac71d37a45a3 100644 --- a/pkgs/by-name/gl/glib/package.nix +++ b/pkgs/by-name/gl/glib/package.nix @@ -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' diff --git a/pkgs/by-name/sy/systemtap-sdt/package.nix b/pkgs/by-name/sy/systemtap-sdt/package.nix new file mode 100644 index 000000000000..d2c2dad1ba06 --- /dev/null +++ b/pkgs/by-name/sy/systemtap-sdt/package.nix @@ -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"; + }; +} diff --git a/pkgs/development/tools/profiling/systemtap/default.nix b/pkgs/development/tools/profiling/systemtap/default.nix index 12b7cc6d332d..7f52af9b4b34 100644 --- a/pkgs/development/tools/profiling/systemtap/default.nix +++ b/pkgs/development/tools/profiling/systemtap/default.nix @@ -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