2019-06-06 09:43:55 +01:00
|
|
|
{stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mystem";
|
2019-06-06 09:43:55 +01:00
|
|
|
version = "3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://download.cdn.yandex.net/mystem/${pname}-${version}-linux-64bit.tar.gz";
|
2019-06-06 09:43:55 +01:00
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
}
|