Move su to the base packages of chrootenv builder

This commit is contained in:
Sander van der Burg
2014-04-18 13:30:24 +02:00
parent 5a03d5b3a9
commit 104c841c85
3 changed files with 18 additions and 16 deletions
@@ -1,10 +1,12 @@
{stdenv, glibc, glibcLocales, gcc, coreutils, diffutils, findutils, gnused, gnugrep, gnutar, gzip, bzip2, {stdenv, glibc, glibcLocales, gcc, coreutils, diffutils, findutils, gnused, gnugrep, gnutar, gzip, bzip2,
bashInteractive, xz, shadow, gawk, less, buildEnv}: bashInteractive, xz, shadow, gawk, less, su, buildEnv}:
{name, pkgs ? [], profile ? ""}: {name, pkgs ? [], profile ? ""}:
let let
basePkgs = [ glibc glibcLocales gcc coreutils diffutils findutils gnused gnugrep gnutar gzip bzip2 basePkgs = [
bashInteractive xz shadow gawk less ]; glibc glibcLocales gcc coreutils diffutils findutils gnused gnugrep gnutar
gzip bzip2 bashInteractive xz shadow gawk less su
];
# Compose a global profile for the chroot environment # Compose a global profile for the chroot environment
profilePkg = stdenv.mkDerivation { profilePkg = stdenv.mkDerivation {
@@ -31,16 +33,16 @@ bashInteractive xz shadow gawk less ];
mountSh = ./mount.sh.in; mountSh = ./mount.sh.in;
loadSh = ./load.sh.in; loadSh = ./load.sh.in;
umountSh = ./umount.sh.in; umountSh = ./umount.sh.in;
destroySh = ./destroy.sh.in; destroySh = ./destroy.sh.in;
in in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "${name}-chrootenv"; name = "${name}-chrootenv";
buildCommand = '' buildCommand = ''
mkdir -p $out/sw mkdir -p $out/sw
cd $out/sw cd $out/sw
for i in ${staticUsrProfile}/{etc,bin,lib{,32,64},sbin,var} for i in ${staticUsrProfile}/{etc,bin,lib{,32,64},sbin,var}
do do
if [ -x "$i" ] if [ -x "$i" ]
then then
ln -s "$i" ln -s "$i"
+2 -2
View File
@@ -1,10 +1,10 @@
{ buildFHSChrootEnv, steam { buildFHSChrootEnv, steam
, xterm, libX11, zenity, python, mesa, xdg_utils, dbus_tools, alsaLib, su , xterm, libX11, zenity, python, mesa, xdg_utils, dbus_tools, alsaLib
}: }:
buildFHSChrootEnv { buildFHSChrootEnv {
name = "steam"; name = "steam";
pkgs = [ steam xterm libX11 zenity python mesa xdg_utils dbus_tools alsaLib su ]; pkgs = [ steam xterm libX11 zenity python mesa xdg_utils dbus_tools alsaLib ];
profile = '' profile = ''
export LD_LIBRARY_PATH=/run/opengl-driver/lib:/run/opengl-driver-32/lib:/lib export LD_LIBRARY_PATH=/run/opengl-driver/lib:/run/opengl-driver-32/lib:/lib
export FONTCONFIG_FILE=/etc/fonts/fonts.conf export FONTCONFIG_FILE=/etc/fonts/fonts.conf
+1 -1
View File
@@ -270,7 +270,7 @@ let
buildFHSChrootEnv = import ../build-support/build-fhs-chrootenv { buildFHSChrootEnv = import ../build-support/build-fhs-chrootenv {
inherit stdenv glibc glibcLocales gcc coreutils diffutils findutils; inherit stdenv glibc glibcLocales gcc coreutils diffutils findutils;
inherit gnused gnugrep gnutar gzip bzip2 bashInteractive xz shadow gawk; inherit gnused gnugrep gnutar gzip bzip2 bashInteractive xz shadow gawk;
inherit less buildEnv; inherit less su buildEnv;
}; };
dotnetenv = import ../build-support/dotnetenv { dotnetenv = import ../build-support/dotnetenv {