about summary refs log tree commit diff
path: root/pkgs/tools/X11/virtualgl/lib.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/X11/virtualgl/lib.nix')
-rw-r--r--pkgs/tools/X11/virtualgl/lib.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/X11/virtualgl/lib.nix b/pkgs/tools/X11/virtualgl/lib.nix
index 4c911e7563300..b3495b189a675 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";