mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 12:02:47 +00:00
c20cc6d0b3
Putting information in external JSON files is IMHO not an improvement over the idiomatic style of Nix expressions. The use of JSON doesn't add anything over Nix expressions (in fact it removes expressive power). And scattering package info over lots of little files makes packages less readable over having the info in one file.
38 lines
1 KiB
Nix
38 lines
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";
|
|
name = "torch-${version}";
|
|
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;
|
|
};
|
|
}
|