@@ -0,0 +1,28 @@
1+{stdenv, fetchgit, luajit, openblas, imagemagick, cmake, curl, fftw, gnuplot,
2+ libjpeg_turbo, zeromq3, ncurses, openssl, libpng, qt4, readline, unzip}:
3+stdenv.mkDerivation rec{
4+ version = "0.0pre20160820";
5+ name = "torch-${version}";
6+ buildInputs = [
7+ luajit openblas imagemagick cmake curl fftw gnuplot unzip qt4
8+ libjpeg_turbo zeromq3 ncurses openssl libpng readline
9+ ];
10+ src = fetchgit (stdenv.lib.importJSON ./src.json);
11+ configurePhase = ''
12+ '';
13+ buildPhase = ''
14+ cd ..
15+ export PREFIX=$out
16+ mkdir "$out"
17+ sh install.sh -s
18+ '';
19+ installPhase = ''
20+ '';
21+ meta = {
22+ inherit version;
23+ description = ''A scientific computing framework with wide support for machine learning algorithms'';
24+ license = stdenv.lib.licenses.bsd3 ;
25+ maintainers = [stdenv.lib.maintainers.raskin];
26+ platforms = stdenv.lib.platforms.linux;
27+ };
28+}