Skip to content

Commit

Permalink
virtualgl-lib: fix broken startup script (#49185)
Browse files Browse the repository at this point in the history
Replace /bin/sh with bash in vglrun.
'exec' fails with /bin/sh
  • Loading branch information
markuskowa authored and xeji committed Oct 30, 2018
1 parent 88155c6 commit efd3f8b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/tools/X11/virtualgl/lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit efd3f8b

Please sign in to comment.