nixpkgs/pkgs/tools/X11/xlaunch/default.nix

15 lines
302 B
Nix
Raw Normal View History

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
";
}