From 327a1559072a3ffc21fb0e8b409a8dd861634269 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 16 Oct 2020 18:18:31 +0200 Subject: [PATCH] Add babeltrace2 for nanos6 --- bsc/babeltrace2/default.nix | 32 ++++++++++++++++++++++++++++++++ overlay.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 bsc/babeltrace2/default.nix diff --git a/bsc/babeltrace2/default.nix b/bsc/babeltrace2/default.nix new file mode 100644 index 0000000..b99b895 --- /dev/null +++ b/bsc/babeltrace2/default.nix @@ -0,0 +1,32 @@ +{ + stdenv +, fetchurl +, pkgconfig +, glib +, libuuid +, popt +, elfutils +, python3 +, swig4 +, ncurses +, breakpointHook +}: + +stdenv.mkDerivation rec { + pname = "babeltrace2"; + version = "2.0.3"; + + src = fetchurl { + url = "https://www.efficios.com/files/babeltrace/${pname}-${version}.tar.bz2"; + sha256 = "1804pyq7fz6rkcz4r1abkkn0pfnss13m6fd8if32s42l4lajadm5"; + }; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ glib libuuid popt elfutils python3 swig4 ncurses breakpointHook ]; + + configureFlags = [ + "--enable-python-plugins" + "--enable-python-bindings" + ]; + +} diff --git a/overlay.nix b/overlay.nix index d66a957..7a3172c 100644 --- a/overlay.nix +++ b/overlay.nix @@ -116,6 +116,8 @@ let nanos6Latest = callPackage ./bsc/nanos6/default.nix { }; nanos6Git = callPackage ./bsc/nanos6/git.nix { }; + babeltrace2 = callPackage ./bsc/babeltrace2/default.nix { }; + vtk = callPackage ./bsc/vtk/default.nix { inherit (self.xorg) libX11 xorgproto libXt; };