2021-01-15 22:18:51 +00:00
|
|
|
{lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mystem";
|
|
|
|
version = "3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.cdn.yandex.net/mystem/${pname}-${version}-linux-64bit.tar.gz";
|
|
|
|
sha256 = "0qha7jvkdmil3jiwrpsfhkqsbkqn9dzgx3ayxwjdmv73ikmg95j6";
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Morphological analysis of Russian text";
|
|
|
|
homepage = "https://yandex.ru/dev/mystem/";
|
2022-06-26 10:26:21 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.unfreeRedistributable;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|