2007-12-31 09:49:41 +01:00
|
|
|
args: with args;
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "xlaunch";
|
|
|
|
inherit xorgserver;
|
|
|
|
buildCommand = "
|
|
|
|
mkdir -p \$out/bin
|
|
|
|
echo '
|
2008-01-01 13:15:40 +01:00
|
|
|
(egrep \"^ +env\" /etc/event.d/xserver | sed -e \"s/env/ export /\" ; echo X;) | bash &
|
2007-12-31 09:49:41 +01:00
|
|
|
sleep 15;
|
|
|
|
\"$@\";
|
|
|
|
' >\$out/bin/xlaunch
|
|
|
|
chmod a+x \$out/bin/xlaunch
|
|
|
|
";
|
|
|
|
}
|