mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
gst_all_1.gstreamer: only try to link libdw if it is available (#347173)
This commit is contained in:
commit
43701e2bfc
@ -32,6 +32,9 @@
|
||||
, enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc
|
||||
}:
|
||||
|
||||
let
|
||||
hasElfutils = lib.meta.availableOn stdenv.hostPlatform elfutils;
|
||||
in
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "gstreamer";
|
||||
version = "1.24.7";
|
||||
@ -81,7 +84,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
bash-completion
|
||||
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
libcap
|
||||
] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform elfutils) [
|
||||
] ++ lib.optionals hasElfutils [
|
||||
elfutils
|
||||
] ++ lib.optionals withLibunwind [
|
||||
libunwind
|
||||
@ -102,7 +105,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
(lib.mesonEnable "introspection" withIntrospection)
|
||||
(lib.mesonEnable "doc" enableDocumentation)
|
||||
(lib.mesonEnable "libunwind" withLibunwind)
|
||||
(lib.mesonEnable "libdw" withLibunwind)
|
||||
(lib.mesonEnable "libdw" (withLibunwind && hasElfutils))
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
Loading…
Reference in New Issue
Block a user