depot/third_party/nixpkgs/pkgs/applications/misc/mystem/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

28 lines
841 B
Nix

{lib, 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 = "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
'';
meta = with lib; {
description = "Morphological analysis of Russian text";
homepage = "https://yandex.ru/dev/mystem/";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfreeRedistributable;
maintainers = with maintainers; [ abbradar ];
platforms = [ "x86_64-linux" ];
mainProgram = "mystem";
};
}