mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 10:04:08 +00:00
gst_all_1.gstreamer: only try to link libdw if it is available
This commit is contained in:
parent
9f2b9d882f
commit
646d4d5a2d
@ -28,6 +28,9 @@
|
|||||||
, enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc
|
, enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
hasElfutils = lib.meta.availableOn stdenv.hostPlatform elfutils;
|
||||||
|
in
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "gstreamer";
|
pname = "gstreamer";
|
||||||
version = "1.24.3";
|
version = "1.24.3";
|
||||||
@ -76,7 +79,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
bash-completion
|
bash-completion
|
||||||
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
] ++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
libcap
|
libcap
|
||||||
] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform elfutils) [
|
] ++ lib.optionals hasElfutils [
|
||||||
elfutils
|
elfutils
|
||||||
] ++ lib.optionals withLibunwind [
|
] ++ lib.optionals withLibunwind [
|
||||||
libunwind
|
libunwind
|
||||||
@ -95,7 +98,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
(lib.mesonEnable "introspection" withIntrospection)
|
(lib.mesonEnable "introspection" withIntrospection)
|
||||||
(lib.mesonEnable "doc" enableDocumentation)
|
(lib.mesonEnable "doc" enableDocumentation)
|
||||||
(lib.mesonEnable "libunwind" withLibunwind)
|
(lib.mesonEnable "libunwind" withLibunwind)
|
||||||
(lib.mesonEnable "libdw" withLibunwind)
|
(lib.mesonEnable "libdw" (withLibunwind && hasElfutils))
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user