@ -1,4 +1,4 @@
{ lib , stdenv , fetchurl , vscode-utils , extractNuGet
{ lib , stdenv , fetchurl , fetchpatch , vscode-utils , extractNuGet
, icu , curl , openssl , liburcu , lttng-ust , autoPatchelfHook
, python3 , musl
, pythonUseFixed ? false # When `true`, the python default setting will be fixed to specified.
@ -28,6 +28,17 @@ let
url = " h t t p s : / / l t t n g . o r g / f i l e s / l t t n g - u s t / l t t n g - u s t - ${ version } . t a r . b z 2 " ;
sha256 = " 0 d d w k 0 n l 2 8 b k v 2 x b 7 8 g z 1 6 a 2 b v l p f b j m z w f b g w f 5 p 1 c q 4 6 d y v y 8 6 " ;
} ;
patches = ( oldAttrs . patches or [ ] ) ++ [
# Pull upstream fix for -fno-common toolchain. Without it build fails on
# upstream gcc-10 as:
# ld: libustsnprintf.a(libustsnprintf_la-core.o):snprintf/core.c:23: multiple definition of
# `ust_loglevel'; ustctl.o:liblttng-ust-ctl/ustctl.c:80: first defined here
( fetchpatch {
name = " f n o - c o m m o n . p a t c h " ;
url = " h t t p s : / / g i t h u b . c o m / l t t n g / l t t n g - u s t / c o m m i t / 2 1 a 9 3 4 d f 4 c 6 8 3 e 7 3 e 0 a 6 6 a 9 a f c a 3 3 5 7 3 f c f 9 d 7 8 9 . p a t c h " ;
sha256 = " 1 2 2 l w 9 r d m r 8 0 g m z 7 8 1 4 2 3 5 i b q s 4 7 c 6 p z v g 0 r y h 0 1 8 0 5 x 0 c y m x 7 4 z " ;
} )
] ;
} ) ;
pythonDefaultsTo = if pythonUseFixed then " ${ python3 } / b i n / p y t h o n " else " p y t h o n " ;