about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/machine-learning/fasttext/default.nix
blob: a04ac5a6945eccd80c88c980a4171811f39c5e50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{lib, stdenv, fetchFromGitHub, cmake}:

stdenv.mkDerivation rec {
  pname = "fasttext";
  version = "0.9.2";

  src = fetchFromGitHub {
    owner = "facebookresearch";
    repo = "fastText";
    rev = "v${version}";
    sha256 = "07cz2ghfq6amcljaxpdr5chbd64ph513y8zqmibfx2xwfp74xkhn";
  };

  nativeBuildInputs = [ cmake ];

  meta = with lib; {
    description = "Library for text classification and representation learning";
    homepage = "https://fasttext.cc/";
    license = licenses.mit;
    platforms = platforms.unix;
    maintainers = [ ];
  };
}