2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, boost165, zlib }:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "starspace";
|
|
|
|
version = "unstable-2021-01-17";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "facebookresearch";
|
|
|
|
repo = pname;
|
|
|
|
rev = "8aee0a950aa607c023e5c91cff518bec335b5df5";
|
|
|
|
sha256 = "0sc7a37z1skb9377a1qs8ggwrkz0nmpybx7sms38xj05b702kbvj";
|
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ boost165 zlib ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
makeFlags = [
|
|
|
|
"CXX=${stdenv.cc.targetPrefix}c++"
|
|
|
|
"BOOST_DIR=${boost165.dev}/include"
|
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
preBuild = ''
|
|
|
|
cp makefile_compress makefile
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv starspace $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "General-purpose neural model for efficient learning of entity embeddings";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://ai.facebook.com/tools/starspace/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.mausch ];
|
|
|
|
};
|
|
|
|
}
|