2020-06-24 07:39:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
, pkg-config
|
|
|
|
, libiconv
|
|
|
|
, openssl
|
|
|
|
, Security
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "finalfrontier";
|
2020-07-27 09:02:09 +00:00
|
|
|
version = "0.9.4";
|
2020-06-24 07:39:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "finalfusion";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-07-27 09:02:09 +00:00
|
|
|
sha256 = "1lvwv238p8hrl4sc5pmnvaargl2dd25p44gxl3kibq5ng03afd0n";
|
2020-06-24 07:39:19 +00:00
|
|
|
};
|
|
|
|
|
2021-05-07 11:00:49 +00:00
|
|
|
cargoSha256 = "0lhcazcih48gc23q484h344bzz7p3lh189ljhswdyph2i11caarp";
|
2020-06-24 07:39:19 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
installShellFiles
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
libiconv
|
|
|
|
Security
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage man/*.1
|
|
|
|
|
|
|
|
# Install shell completions
|
|
|
|
for shell in bash fish zsh; do
|
|
|
|
$out/bin/finalfrontier completions $shell > finalfrontier.$shell
|
|
|
|
done
|
|
|
|
installShellCompletion finalfrontier.{bash,fish,zsh}
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-06-24 07:39:19 +00:00
|
|
|
description = "Utility for training word and subword embeddings";
|
|
|
|
homepage = "https://github.com/finalfusion/finalfrontier/";
|
|
|
|
license = licenses.asl20;
|
2021-09-12 14:42:12 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-06-24 07:39:19 +00:00
|
|
|
};
|
|
|
|
}
|