Skip to content

Commit

Permalink
gst_all_1.gstreamer: only try to link libdw if it is available (#347173)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Oct 8, 2024
2 parents 3c3568d + 646d4d5 commit 43701e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/development/libraries/gstreamer/core/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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
Expand All @@ -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 = ''
Expand Down

0 comments on commit 43701e2

Please sign in to comment.