From c2362f1bf1771cfcba53d99e33a88a3c74274ae0 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Tue, 19 May 2009 23:51:13 +0000 Subject: [PATCH] Synced with trunk @ 15661 svn path=/nixos/branches/modular-nixos/; revision=15667 --- etc/default.nix | 4 ++-- system/fonts.nix | 2 +- system/system-options.nix | 22 +++++++++++----------- system/users-groups.nix | 6 +++--- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/etc/default.nix b/etc/default.nix index 878bea7f7959..2e180877fe74 100644 --- a/etc/default.nix +++ b/etc/default.nix @@ -227,7 +227,7 @@ let in let - inherit (pkgs.stringsWithDeps) noDepEntry FullDepEntry PackEntry; + inherit (pkgs.stringsWithDeps) noDepEntry fullDepEntry packEntry; activateLib = config.system.activationScripts.lib; @@ -265,7 +265,7 @@ in }; activationScripts = { - etc = FullDepEntry '' + etc = fullDepEntry '' # Set up the statically computed bits of /etc. staticEtc=/etc/static rm -f $staticEtc diff --git a/system/fonts.nix b/system/fonts.nix index 6afe44fe99ad..4f540619a45d 100644 --- a/system/fonts.nix +++ b/system/fonts.nix @@ -103,7 +103,7 @@ let buildInputs = [mkfontdir mkfontscale ttmkfdir]; configureFlags = []; inherit fontDirs; - installPhase = FullDepEntry (" + installPhase = fullDepEntry (" list=''; for i in ${toString fontDirs} ; do if [ -d \$i/ ]; then diff --git a/system/system-options.nix b/system/system-options.nix index 703464031193..4e778a7aad46 100644 --- a/system/system-options.nix +++ b/system/system-options.nix @@ -73,7 +73,7 @@ in ###### implementation let - inherit (pkgs.stringsWithDeps) noDepEntry FullDepEntry PackEntry; + inherit (pkgs.stringsWithDeps) noDepEntry fullDepEntry packEntry; inherit (pkgs.lib) mapRecordFlatten; activateLib = config.system.activationScripts.lib; @@ -113,7 +113,7 @@ in done ''; - stdio = FullDepEntry '' + stdio = fullDepEntry '' # Needed by some programs. ln -sfn /proc/self/fd /dev/fd ln -sfn /proc/self/fd/0 /dev/stdin @@ -123,7 +123,7 @@ in activateLib.defaultPath # path to ln ]; - binsh = FullDepEntry '' + binsh = fullDepEntry '' # Create the required /bin/sh symlink; otherwise lots of things # (notably the system() function) won't work. mkdir -m 0755 -p $mountPoint/bin @@ -133,7 +133,7 @@ in activateLib.stdio # ? ]; - modprobe = FullDepEntry '' + modprobe = fullDepEntry '' # Allow the kernel to find our wrapped modprobe (which searches in the # right location in the Nix store for kernel modules). We need this # when the kernel (or some module) auto-loads a module. @@ -144,7 +144,7 @@ in # ? ]; - var = FullDepEntry '' + var = fullDepEntry '' # Various log/runtime directories. mkdir -m 0755 -p /var/run mkdir -m 0755 -p /var/run/console # for pam_console @@ -172,7 +172,7 @@ in activateLib.defaultPath # path to mkdir & touch & chmod ]; - rootPasswd = FullDepEntry '' + rootPasswd = fullDepEntry '' # If there is no password file yet, create a root account with an # empty password. if ! test -e /etc/passwd; then @@ -192,7 +192,7 @@ in # ? ]; - nix = FullDepEntry '' + nix = fullDepEntry '' # Set up Nix. mkdir -p /nix/etc/nix ln -sfn /etc/nix.conf /nix/etc/nix/nix.conf @@ -221,7 +221,7 @@ in activateLib.users # nixbld group ]; - path = FullDepEntry '' + path = fullDepEntry '' PATH=${config.system.path}/bin:${config.system.path}/sbin:$PATH '' [ activateLib.defaultPath @@ -249,7 +249,7 @@ in '') config.security.setuidOwners); - in FullDepEntry '' + in fullDepEntry '' # Make a few setuid programs work. save_PATH="$PATH" @@ -284,7 +284,7 @@ in activateLib.users ]; - hostname = FullDepEntry '' + hostname = fullDepEntry '' # Set the host name. Don't clear it if it's not configured in the # NixOS configuration, since it may have been set by dhclient in the # meantime. @@ -302,7 +302,7 @@ in # The activation have to be done at the end. Therefore, this entry # depends on all scripts declared in the activation library. - activate = FullDepEntry '' + activate = fullDepEntry '' # Make this configuration the current configuration. # The readlink is there to ensure that when $systemConfig = /system # (which is a symlink to the store), /var/run/current-system is still diff --git a/system/users-groups.nix b/system/users-groups.nix index 0ceff1eb5f62..4e671ab26f80 100644 --- a/system/users-groups.nix +++ b/system/users-groups.nix @@ -140,7 +140,7 @@ let in let - inherit (pkgs.stringsWithDeps) FullDepEntry; + inherit (pkgs.stringsWithDeps) fullDepEntry; activateLib = config.system.activationScripts.lib; @@ -159,7 +159,7 @@ in system = { activationScripts = { - users = FullDepEntry '' + users = fullDepEntry '' cat ${usersFile} | while true; do read name || break read description @@ -206,7 +206,7 @@ in activateLib.groups ]; - groups = FullDepEntry '' + groups = fullDepEntry '' while true; do read name || break read gid