mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-04 01:42:53 +03:00
9784b59b8b
svn path=/nixpkgs/trunk/; revision=10038
15 lines
298 B
Nix
15 lines
298 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
|
|
";
|
|
}
|