Skip to content

Instantly share code, notes, and snippets.

@mausch
Created January 17, 2021 16:29
Show Gist options
  • Save mausch/4de13dc3e3a15813461f8c7fb57e39d1 to your computer and use it in GitHub Desktop.
Save mausch/4de13dc3e3a15813461f8c7fb57e39d1 to your computer and use it in GitHub Desktop.
Nix package for Facebook's StarSpace
{ pkgs ? (import (fetchTarball https://github.com/NixOS/nixpkgs/archive/e298629fec0fe6ffbd6e30dcb1fc4718bc807cb4.tar.gz) {})}:
with pkgs;
stdenv.mkDerivation {
pname = "starspace";
version = "8aee0a950aa607c023e5c91cff518bec335b5df5";
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
boost163
];
src = fetchurl {
url = https://github.com/facebookresearch/StarSpace/archive/8aee0a950aa607c023e5c91cff518bec335b5df5.tar.gz;
sha256 = "00kcjkj34qb0g6xccihhnxa977y4waa30vadq7fg4qd6dlsi0kzs";
};
installPhase = ''
mkdir -p $out/bin
mv starspace $out/bin
'';
}
@mausch
Copy link
Author

mausch commented Jan 17, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment