2021-01-11 08:54:33 +01:00
|
|
|
{lib, stdenv, fetchurl }:
|
2019-06-06 10:43:55 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mystem";
|
2019-06-06 10:43:55 +02:00
|
|
|
version = "3.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "http://download.cdn.yandex.net/mystem/${pname}-${version}-linux-64bit.tar.gz";
|
2019-09-18 21:44:25 +02:00
|
|
|
sha256 = "0qha7jvkdmil3jiwrpsfhkqsbkqn9dzgx3ayxwjdmv73ikmg95j6";
|
2019-06-06 10:43:55 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-06-06 10:43:55 +02:00
|
|
|
description = "Morphological analysis of Russian text";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://yandex.ru/dev/mystem/";
|
2022-06-05 00:19:25 +02:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2019-06-06 10:43:55 +02:00
|
|
|
license = licenses.unfreeRedistributable;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|