diff --git a/bsc/babeltrace/default.nix b/bsc/babeltrace/default.nix new file mode 100644 index 0000000..973820a --- /dev/null +++ b/bsc/babeltrace/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl, pkgconfig, glib, libuuid, popt, elfutils, swig4, python3 }: + +stdenv.mkDerivation rec { + name = "babeltrace-1.5.8"; + + src = fetchurl { + url = "https://www.efficios.com/files/babeltrace/${name}.tar.bz2"; + sha256 = "1hkg3phnamxfrhwzmiiirbhdgckzfkqwhajl0lmr1wfps7j47wcz"; + }; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ glib libuuid popt elfutils swig4 python3 ]; + + meta = with stdenv.lib; { + description = "Command-line tool and library to read and convert LTTng tracefiles"; + homepage = "https://www.efficios.com/babeltrace"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; + + configureFlags = [ + "--enable-python-bindings" + ]; +} diff --git a/overlay.nix b/overlay.nix index 7a3172c..69b9a3e 100644 --- a/overlay.nix +++ b/overlay.nix @@ -116,6 +116,7 @@ let nanos6Latest = callPackage ./bsc/nanos6/default.nix { }; nanos6Git = callPackage ./bsc/nanos6/git.nix { }; + babeltrace = callPackage ./bsc/babeltrace/default.nix { }; babeltrace2 = callPackage ./bsc/babeltrace2/default.nix { }; vtk = callPackage ./bsc/vtk/default.nix {