Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 32 lines 1.3 kB view raw
1{ lib, stdenv, fetchurl, autoreconfHook, pkg-config, glib, libuuid, popt, elfutils }: 2 3stdenv.mkDerivation rec { 4 pname = "babeltrace"; 5 version = "1.5.8"; 6 7 src = fetchurl { 8 url = "https://www.efficios.com/files/babeltrace/${pname}-${version}.tar.bz2"; 9 sha256 = "1hkg3phnamxfrhwzmiiirbhdgckzfkqwhajl0lmr1wfps7j47wcz"; 10 }; 11 12 # The pre-generated ./configure script uses an old autoconf version which 13 # breaks cross-compilation (replaces references to malloc with rpl_malloc). 14 # Re-generate with nixpkgs's autoconf. This requires glib to be present in 15 # nativeBuildInputs for its m4 macros to be present. 16 nativeBuildInputs = [ autoreconfHook glib pkg-config ]; 17 buildInputs = [ glib libuuid popt elfutils ]; 18 19 # --enable-debug-info (default) requires the configure script to run host 20 # executables to determine the elfutils library version, which cannot be done 21 # while cross compiling. 22 configureFlags = lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "--disable-debug-info"; 23 24 meta = with lib; { 25 description = "Command-line tool and library to read and convert LTTng tracefiles"; 26 homepage = "https://www.efficios.com/babeltrace"; 27 license = licenses.mit; 28 platforms = platforms.linux; 29 maintainers = [ maintainers.bjornfor ]; 30 }; 31 32}