systemd: stdenv.lib -> lib

This is a no-op and makes things a bit smaller.
This commit is contained in:
Florian Klink 2020-10-27 23:20:54 +01:00
parent 0b32140b34
commit c6bbc945b4

View File

@ -122,12 +122,12 @@ in stdenv.mkDerivation {
[ linuxHeaders libcap curl.dev kmod xz pam acl [ linuxHeaders libcap curl.dev kmod xz pam acl
cryptsetup libuuid glib libgcrypt libgpgerror libidn2 cryptsetup libuuid glib libgcrypt libgpgerror libidn2
pcre2 ] ++ pcre2 ] ++
stdenv.lib.optional withKexectools kexectools ++ lib.optional withKexectools kexectools ++
stdenv.lib.optional withLibseccomp libseccomp ++ lib.optional withLibseccomp libseccomp ++
[ libffi audit lz4 bzip2 libapparmor iptables ] ++ [ libffi audit lz4 bzip2 libapparmor iptables ] ++
stdenv.lib.optional withEfi gnu-efi ++ lib.optional withEfi gnu-efi ++
stdenv.lib.optional withSelinux libselinux ++ lib.optional withSelinux libselinux ++
stdenv.lib.optional withCryptsetup cryptsetup.dev; lib.optional withCryptsetup cryptsetup.dev;
#dontAddPrefix = true; #dontAddPrefix = true;
@ -143,26 +143,26 @@ in stdenv.mkDerivation {
"-Dsetfont-path=${kbd}/bin/setfont" "-Dsetfont-path=${kbd}/bin/setfont"
"-Dtty-gid=3" # tty in NixOS has gid 3 "-Dtty-gid=3" # tty in NixOS has gid 3
"-Ddebug-shell=${bashInteractive}/bin/bash" "-Ddebug-shell=${bashInteractive}/bin/bash"
"-Dglib=${stdenv.lib.boolToString (glib != null)}" "-Dglib=${lib.boolToString (glib != null)}"
# while we do not run tests we should also not build them. Removes about 600 targets # while we do not run tests we should also not build them. Removes about 600 targets
"-Dtests=false" "-Dtests=false"
"-Dimportd=${stdenv.lib.boolToString withImportd}" "-Dimportd=${lib.boolToString withImportd}"
"-Dlz4=true" "-Dlz4=true"
"-Dhomed=false" "-Dhomed=false"
"-Dlogind=${stdenv.lib.boolToString withLogind}" "-Dlogind=${lib.boolToString withLogind}"
"-Dlocaled=${stdenv.lib.boolToString withLocaled}" "-Dlocaled=${lib.boolToString withLocaled}"
"-Dhostnamed=${stdenv.lib.boolToString withHostnamed}" "-Dhostnamed=${lib.boolToString withHostnamed}"
"-Dnetworkd=${stdenv.lib.boolToString withNetworkd}" "-Dnetworkd=${lib.boolToString withNetworkd}"
"-Dcryptsetup=${stdenv.lib.boolToString withCryptsetup}" "-Dcryptsetup=${lib.boolToString withCryptsetup}"
"-Dportabled=false" "-Dportabled=false"
"-Dhwdb=${stdenv.lib.boolToString withHwdb}" "-Dhwdb=${lib.boolToString withHwdb}"
"-Dremote=false" "-Dremote=false"
"-Dsysusers=false" "-Dsysusers=false"
"-Dtimedated=${stdenv.lib.boolToString withTimedated}" "-Dtimedated=${lib.boolToString withTimedated}"
"-Dtimesyncd=${stdenv.lib.boolToString withTimesyncd}" "-Dtimesyncd=${lib.boolToString withTimesyncd}"
"-Dfirstboot=false" "-Dfirstboot=false"
"-Dlocaled=true" "-Dlocaled=true"
"-Dresolve=${stdenv.lib.boolToString withResolved}" "-Dresolve=${lib.boolToString withResolved}"
"-Dsplit-usr=false" "-Dsplit-usr=false"
"-Dlibcurl=true" "-Dlibcurl=true"
"-Dlibidn=false" "-Dlibidn=false"
@ -201,8 +201,8 @@ in stdenv.mkDerivation {
# more frequent development builds # more frequent development builds
"-Dman=true" "-Dman=true"
"-Dgnu-efi=${stdenv.lib.boolToString (withEfi && gnu-efi != null)}" "-Dgnu-efi=${lib.boolToString (withEfi && gnu-efi != null)}"
] ++ stdenv.lib.optionals (withEfi && gnu-efi != null) [ ] ++ lib.optionals (withEfi && gnu-efi != null) [
"-Defi-libdir=${toString gnu-efi}/lib" "-Defi-libdir=${toString gnu-efi}/lib"
"-Defi-includedir=${toString gnu-efi}/include/efi" "-Defi-includedir=${toString gnu-efi}/include/efi"
"-Defi-ldsdir=${toString gnu-efi}/lib" "-Defi-ldsdir=${toString gnu-efi}/lib"
@ -323,7 +323,7 @@ in stdenv.mkDerivation {
# runtime; otherwise we can't and we need to reboot. # runtime; otherwise we can't and we need to reboot.
passthru.interfaceVersion = 2; passthru.interfaceVersion = 2;
meta = with stdenv.lib; { meta = with lib; {
homepage = "https://www.freedesktop.org/wiki/Software/systemd/"; homepage = "https://www.freedesktop.org/wiki/Software/systemd/";
description = "A system and service manager for Linux"; description = "A system and service manager for Linux";
license = licenses.lgpl21Plus; license = licenses.lgpl21Plus;