ViTE from SVN.
svn path=/nixpkgs/trunk/; revision=22696
This commit is contained in:
parent
3c482c79d6
commit
35cbabdab4
@ -1,12 +1,29 @@
|
||||
{ fetchurl, stdenv, cmake, qt, mesa }:
|
||||
{ fetchsvn, stdenv, cmake, qt, mesa }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "vite-1.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://gforge.inria.fr/frs/download.php/26321/vite_1005.tar.gz";
|
||||
sha256 = "11l39809i1hjizw89x23d6m246w7a64z11bhrx7q5h0scvwd1imr";
|
||||
# ViTE 1.1 has several bugs, so use the SVN version.
|
||||
let
|
||||
rev = "1143";
|
||||
externals = fetchsvn {
|
||||
url = "svn://scm.gforge.inria.fr/svn/vite/externals";
|
||||
sha256 = "0wg3yh5q8gx7189rvkd8achld7bzp0i7qqn6c77pg767b4b8dh1a";
|
||||
inherit rev;
|
||||
};
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
name = "vite-1.2pre${rev}";
|
||||
|
||||
src = fetchsvn {
|
||||
url = "svn://scm.gforge.inria.fr/svn/vite/trunk";
|
||||
sha256 = "0cy9b6isiwqwnv9gk0cg97x370fpwyccljadds4a118k5gh58zw4";
|
||||
inherit rev;
|
||||
};
|
||||
|
||||
preConfigure =
|
||||
'' rm -v externals
|
||||
ln -sv "${externals}" externals
|
||||
'';
|
||||
|
||||
patches = [ ./larger-line-buffer.patch ];
|
||||
|
||||
buildInputs = [ cmake qt mesa ];
|
||||
|
||||
|
14
pkgs/applications/science/misc/vite/larger-line-buffer.patch
Normal file
14
pkgs/applications/science/misc/vite/larger-line-buffer.patch
Normal file
@ -0,0 +1,14 @@
|
||||
ViTE has an arbitrary restriction on the length of lines read by the parser.
|
||||
Make it larger.
|
||||
|
||||
--- a/src/parser/PajeFileManager.hpp
|
||||
+++ b/src/parser/PajeFileManager.hpp
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
-#define _PAJE_BUFSIZE 256
|
||||
+#define _PAJE_BUFSIZE 16384
|
||||
#define _PAJE_NBMAXTKS 16
|
||||
|
||||
/**
|
@ -9784,7 +9784,7 @@ let
|
||||
};
|
||||
|
||||
vite = import ../applications/science/misc/vite {
|
||||
inherit fetchurl cmake mesa;
|
||||
inherit fetchsvn cmake mesa;
|
||||
qt = qt4;
|
||||
stdenv = stdenv2;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user