Commit 600faf99 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

libcanberra: use availability check for systemd

systemd isn't available on all Linux platforms, so we should use a
more accurate check than just isLinux for optional systemd
dependencies.
parent a6f9c18c
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@
  gst_all_1,
  libvorbis,
  libcap,
  withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
  systemd,
  withAlsa ? stdenv.hostPlatform.isLinux,
  alsa-lib,
@@ -45,10 +46,8 @@ stdenv.mkDerivation rec {
    ])
    ++ lib.optional (gtkSupport == "gtk2") gtk2-x11
    ++ lib.optional (gtkSupport == "gtk3") gtk3-x11
    ++ lib.optionals stdenv.hostPlatform.isLinux [
      libcap
      systemd
    ]
    ++ lib.optional stdenv.hostPlatform.isLinux libcap
    ++ lib.optional withSystemd systemd
    ++ lib.optional withAlsa alsa-lib;

  configureFlags =