5aa4b19946
Refs: e6754980264fe927320d5ff2dbd24ca4fac9a160 1e9cc5b9844ef603fe160e9f671178f96200774f 793a2fe1e8bb886ca2096c5904e1193dc3268b6d c19cf65261639f749012454932a532aa7c681e4b f6544d618f30fae0bc4798c4387a8c7c9c047a7c
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{stdenv, fetchgit, luajit, openblas, imagemagick, cmake, curl, fftw, gnuplot
|
|
, libjpeg, zeromq3, ncurses, openssl, libpng, qt4, readline, unzip
|
|
, pkgconfig, zlib, libX11, which
|
|
}:
|
|
stdenv.mkDerivation rec{
|
|
version = "0.0pre20160820";
|
|
pname = "torch";
|
|
buildInputs = [
|
|
luajit openblas imagemagick cmake curl fftw gnuplot unzip qt4
|
|
libjpeg zeromq3 ncurses openssl libpng readline pkgconfig
|
|
zlib libX11 which
|
|
];
|
|
|
|
src = fetchgit {
|
|
url = "https://github.com/torch/distro";
|
|
rev = "8b6a834f8c8755f6f5f84ef9d8da9cfc79c5ce1f";
|
|
sha256 = "120hnz82d7izinsmv5smyqww71dhpix23pm43s522dfcglpql8xy";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
buildPhase = ''
|
|
cd ..
|
|
export PREFIX=$out
|
|
|
|
mkdir "$out"
|
|
sh install.sh -s
|
|
'';
|
|
installPhase = ''
|
|
'';
|
|
meta = {
|
|
inherit version;
|
|
description = ''A scientific computing framework with wide support for machine learning algorithms'';
|
|
license = stdenv.lib.licenses.bsd3 ;
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
platforms = stdenv.lib.platforms.linux;
|
|
broken = true;
|
|
};
|
|
}
|