starspace: build with gzip support

This commit is contained in:
Mauricio Scheffer 2021-06-11 14:38:40 +01:00
parent 2c2b33c326
commit 0516afb267

View File

@ -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