mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-05 20:43:28 +00:00
e0317df04f
svn path=/nixpkgs/trunk/; revision=10039
15 lines
302 B
Nix
15 lines
302 B
Nix
args: with args;
|
|
stdenv.mkDerivation {
|
|
name = "xlaunch";
|
|
inherit xorgserver;
|
|
buildCommand = "
|
|
mkdir -p \$out/bin
|
|
echo '
|
|
(egrep \"^ +env\" /etc/event.d/xserver | sed -e \"s/env/ export /\" ; echo X;) | bash &
|
|
sleep 15;
|
|
\"$@\";
|
|
' >\$out/bin/xlaunch
|
|
chmod a+x \$out/bin/xlaunch
|
|
";
|
|
}
|