Unverified Commit 104adebe authored by Thiago Kenji Okada's avatar Thiago Kenji Okada Committed by GitHub
Browse files

htop-vim: replace `systemd` with `systemdLibs` (#463764)

parents 12c060e8 85f30936
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -10,8 +10,8 @@
  libnl,
  sensorsSupport ? stdenv.hostPlatform.isLinux,
  lm_sensors,
  systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd,
  systemd,
  systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemdLibs,
  systemdLibs,
}:

assert systemdSupport -> stdenv.hostPlatform.isLinux;
@@ -58,7 +58,7 @@ stdenv.mkDerivation rec {
    libnl
  ]
  ++ lib.optional sensorsSupport lm_sensors
  ++ lib.optional systemdSupport systemd;
  ++ lib.optional systemdSupport systemdLibs;

  configureFlags = [
    "--enable-unicode"
@@ -77,7 +77,7 @@ stdenv.mkDerivation rec {
    in
    lib.optionalString (!stdenv.hostPlatform.isStatic) ''
      ${optionalPatch sensorsSupport "${lib.getLib lm_sensors}/lib/libsensors.so"}
      ${optionalPatch systemdSupport "${systemd}/lib/libsystemd.so"}
      ${optionalPatch systemdSupport "${systemdLibs}/lib/libsystemd.so"}
    '';

  meta = with lib; {