mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
fa272cab14
svn path=/nixpkgs/trunk/; revision=9985
14 lines
292 B
Nix
14 lines
292 B
Nix
args: with args;
|
|
stdenv.mkDerivation {
|
|
name = "xlaunch";
|
|
inherit xorgserver;
|
|
buildCommand = "
|
|
mkdir -p \$out/bin
|
|
echo '
|
|
(egrep \"^\\s+env\" /etc/event.d/xserver | sed -e s/env// ; echo X;) | bash &
|
|
sleep 15;
|
|
\"$@\";
|
|
' >\$out/bin/xlaunch
|
|
chmod a+x \$out/bin/xlaunch
|
|
";
|
|
}
|