diff options
author | Nikolay Amiantov <ab@fmap.me> | 2019-06-06 11:43:55 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2019-06-06 20:26:36 +0300 |
commit | 16492f9815c375376f7e67fb619294a7b58278aa (patch) | |
tree | fc7c340be3c4ce813fb7bafca5be8be625d4703e /pkgs/applications/misc/mystem | |
parent | 7e6756af41944569fc2d7903ff122b1d56170e21 (diff) |
mystem: init at 3.1
Diffstat (limited to 'pkgs/applications/misc/mystem')
-rw-r--r-- | pkgs/applications/misc/mystem/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/applications/misc/mystem/default.nix b/pkgs/applications/misc/mystem/default.nix new file mode 100644 index 0000000000000..45b83b7274850 --- /dev/null +++ b/pkgs/applications/misc/mystem/default.nix @@ -0,0 +1,26 @@ +{stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "mystem-${version}"; + version = "3.1"; + + src = fetchurl { + url = "http://download.cdn.yandex.net/mystem/${name}-linux-64bit.tar.gz"; + 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" ]; + }; +} |