1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 00:54:11 +00:00
nixpkgs/pkgs/applications/misc/mystem/default.nix
2019-09-18 12:44:25 -07:00

27 lines
750 B
Nix

{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 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" ];
};
}