htop-vim: replace systemd with systemdLibs (#463764)
This commit is contained in:
@@ -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; {
|
||||
|
||||
Reference in New Issue
Block a user