blob: deecc92d99345aa95939f0f4a1e1048df03f5030 (
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
24
25
26
|
{stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "mystem";
version = "3.1";
src = fetchurl {
url = "http://download.cdn.yandex.net/mystem/${pname}-${version}-linux-64bit.tar.gz";
sha256 = "0q3vxvyj5bqllqnlivy5llss39z7j0bgpn6kv8mrc54vjdhppx10";
};
buildCommand = ''
tar -xaf "$src"
mkdir -p $out/bin
install -Dm755 mystem $out/bin/mystem
patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) $out/bin/mystem
'';
meta = with stdenv.lib; {
description = "Morphological analysis of Russian text";
homepage = https://yandex.ru/dev/mystem/;
license = licenses.unfreeRedistributable;
maintainers = with maintainers; [ abbradar ];
platforms = [ "x86_64-linux" ];
};
}
|