about summary refs log tree commit diff
path: root/pkgs/applications/science/machine-learning/starspace
diff options
context:
space:
mode:
authorMauricio Scheffer <mauricioscheffer@gmail.com>2021-06-11 14:38:40 +0100
committerMauricio Scheffer <mauricioscheffer@gmail.com>2021-06-13 16:20:58 +0100
commit0516afb2675151bd020980826bba831c9f2fb064 (patch)
treef913bb8205db9949c5fb8c44ea4f8d688703f71f /pkgs/applications/science/machine-learning/starspace
parent2c2b33c326a3faf5dc86e373dfafe0dcf3eb5136 (diff)
starspace: build with gzip support
Diffstat (limited to 'pkgs/applications/science/machine-learning/starspace')
-rw-r--r--pkgs/applications/science/machine-learning/starspace/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/science/machine-learning/starspace/default.nix b/pkgs/applications/science/machine-learning/starspace/default.nix
index d5a6cb796a718..ca7500cd5c354 100644
--- a/pkgs/applications/science/machine-learning/starspace/default.nix
+++ b/pkgs/applications/science/machine-learning/starspace/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, boost165 }:
+{ lib, stdenv, fetchFromGitHub, boost165, zlib }:
 
 stdenv.mkDerivation rec {
   pname = "starspace";
@@ -11,13 +11,17 @@ stdenv.mkDerivation rec {
     sha256 = "0sc7a37z1skb9377a1qs8ggwrkz0nmpybx7sms38xj05b702kbvj";
   };
 
-  buildInputs = [ boost165 ];
+  buildInputs = [ boost165 zlib ];
 
   makeFlags = [
     "CXX=${stdenv.cc.targetPrefix}c++"
     "BOOST_DIR=${boost165.dev}/include"
   ];
 
+  preBuild = ''
+    cp makefile_compress makefile
+  '';
+
   installPhase = ''
     mkdir -p $out/bin
     mv starspace $out/bin