From c341f56928c5f8a41baf11d578c92b4cb7d77c6a Mon Sep 17 00:00:00 2001 From: markuskowa Date: Tue, 30 Oct 2018 16:15:53 +0100 Subject: [PATCH] virtualgl-lib: fix broken startup script (#49185) Replace /bin/sh with bash in vglrun. 'exec' fails with /bin/sh (cherry picked from commit efd3f8b57ff81f263a961c740396b4eb205aa955) --- pkgs/tools/X11/virtualgl/lib.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/X11/virtualgl/lib.nix b/pkgs/tools/X11/virtualgl/lib.nix index c552011f3844..5446a51fc0a1 100644 --- a/pkgs/tools/X11/virtualgl/lib.nix +++ b/pkgs/tools/X11/virtualgl/lib.nix @@ -19,6 +19,12 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; + postPatch = '' + # script calls exec, which fails with plain sh + substituteInPlace ./server/vglrun.in \ + --replace '#!/bin/sh' '#!/usr/bin/env bash' + ''; + meta = with stdenv.lib; { homepage = http://www.virtualgl.org/; description = "X11 GL rendering in a remote computer with full 3D hw acceleration";