diff --git a/pkgs/tools/admin/tightvnc/builder.sh b/pkgs/tools/admin/tightvnc/builder.sh index 5842400693c0..1b22238de4ee 100644 --- a/pkgs/tools/admin/tightvnc/builder.sh +++ b/pkgs/tools/admin/tightvnc/builder.sh @@ -4,6 +4,7 @@ buildPhase=buildPhase buildPhase() { xmkmf make World + sed -e 's@/usr/bin/perl@'$perl'/bin/perl@' -i vncserver cd Xvnc sed -e 's@.* CppCmd .*@#define CppCmd '$gcc'/bin/cpp@' -i config/cf/linux.cf diff --git a/pkgs/tools/admin/tightvnc/default.nix b/pkgs/tools/admin/tightvnc/default.nix index a3fa7adc344c..779ee3452fd3 100644 --- a/pkgs/tools/admin/tightvnc/default.nix +++ b/pkgs/tools/admin/tightvnc/default.nix @@ -1,9 +1,10 @@ -{stdenv, fetchurl, x11, zlib, libjpeg, imake, gccmakedep, libXmu, libXaw, libXpm, libXp}: +{stdenv, fetchurl, x11, zlib, libjpeg, imake, gccmakedep, libXmu, libXaw, libXpm, libXp , perl}: stdenv.mkDerivation { name = "tightvnc-1.3.9"; builder = ./builder.sh; gcc=stdenv.gcc.gcc; + inherit perl; src = fetchurl { url = mirror://sourceforge/vnc-tight/tightvnc-1.3.9_unixsrc.tar.bz2; sha256 = "0nij6kyzwxf7nblwd6riwqhzh8b8xwdffpj379zi5y9mcmiwmalr"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e72015c07fc3..c9402d23cc75 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -670,7 +670,7 @@ rec { }; tightvnc = import ../tools/admin/tightvnc { - inherit fetchurl stdenv x11 zlib libjpeg; + inherit fetchurl stdenv x11 zlib libjpeg perl; inherit (xlibs) imake gccmakedep libXmu libXaw libXpm libXp; };