3
0
Fork 0
forked from mirrors/nixpkgs

lttng-ust: 2.13.0 -> 2.13.1, make generic

This commit is contained in:
Nikolay Amiantov 2021-12-15 14:23:03 +03:00
parent e55d12da43
commit caba927c4a
2 changed files with 47 additions and 41 deletions

View file

@ -1,42 +1,4 @@
{ lib, stdenv, fetchurl, pkg-config, liburcu, numactl, python3 }:
# NOTE:
# ./configure ...
# [...]
# LTTng-UST will be built with the following options:
#
# Java support (JNI): Disabled
# sdt.h integration: Disabled
# [...]
#
# Debian builds with std.h (systemtap).
stdenv.mkDerivation rec {
pname = "lttng-ust";
version = "2.13.0";
src = fetchurl {
url = "https://lttng.org/files/lttng-ust/${pname}-${version}.tar.bz2";
sha256 = "0l0p6y2zrd9hgd015dhafjmpcj7waz762n6wf5ws1xlwcwrwkr2l";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ numactl python3 ];
preConfigure = ''
patchShebangs .
'';
propagatedBuildInputs = [ liburcu ];
enableParallelBuilding = true;
meta = with lib; {
description = "LTTng Userspace Tracer libraries";
homepage = "https://lttng.org/";
license = with licenses; [ lgpl21Only gpl2Only mit ];
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
};
import ./generic.nix {
version = "2.13.1";
sha256 = "sha256-Vme/Amnh5i4tnLl0xFb/huBAG9eqO/yNX9uXIzJJ7dw=";
}

View file

@ -0,0 +1,44 @@
{ version, sha256 }:
{ lib, stdenv, fetchurl, pkg-config, liburcu, numactl, python3 }:
# NOTE:
# ./configure ...
# [...]
# LTTng-UST will be built with the following options:
#
# Java support (JNI): Disabled
# sdt.h integration: Disabled
# [...]
#
# Debian builds with std.h (systemtap).
stdenv.mkDerivation rec {
pname = "lttng-ust";
inherit version;
src = fetchurl {
url = "https://lttng.org/files/lttng-ust/${pname}-${version}.tar.bz2";
inherit sha256;
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ numactl python3 ];
preConfigure = ''
patchShebangs .
'';
propagatedBuildInputs = [ liburcu ];
enableParallelBuilding = true;
meta = with lib; {
description = "LTTng Userspace Tracer libraries";
homepage = "https://lttng.org/";
license = with licenses; [ lgpl21Only gpl2Only mit ];
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
};
}