meguca: Disable building C++ client for Darwin
This commit is contained in:
parent
05a337ce53
commit
3bec94f2e1
@ -1,6 +1,5 @@
|
|||||||
{ stdenv, buildGoPackage, fetchgit, pkgconfig, cmake, libcxx, libcxxabi
|
{ stdenv, buildGoPackage, fetchgit, pkgconfig, cmake, ffmpeg-full, ghostscript
|
||||||
, ffmpeg-full, graphicsmagick, ghostscript, quicktemplate, go-bindata, easyjson
|
, graphicsmagick, quicktemplate, go-bindata, easyjson, nodePackages, emscripten }:
|
||||||
, nodePackages, emscripten }:
|
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
name = "meguca-unstable-${version}";
|
name = "meguca-unstable-${version}";
|
||||||
@ -22,7 +21,7 @@ buildGoPackage rec {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
ffmpeg-full graphicsmagick ghostscript quicktemplate go-bindata easyjson
|
ffmpeg-full graphicsmagick ghostscript quicktemplate go-bindata easyjson
|
||||||
emscripten
|
emscripten
|
||||||
] ++ stdenv.lib.optionals stdenv.isDarwin [ libcxx libcxxabi ];
|
];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
export HOME=$PWD
|
export HOME=$PWD
|
||||||
@ -32,8 +31,10 @@ buildGoPackage rec {
|
|||||||
sed -i "/npm install --progress false --depth 0/d" Makefile
|
sed -i "/npm install --progress false --depth 0/d" Makefile
|
||||||
make generate_clean
|
make generate_clean
|
||||||
go generate meguca/...
|
go generate meguca/...
|
||||||
go build -p $NIX_BUILD_CORES meguca
|
go build -v -p $NIX_BUILD_CORES meguca
|
||||||
make -j $NIX_BUILD_CORES client wasm
|
make -j $NIX_BUILD_CORES client
|
||||||
|
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
||||||
|
make -j $NIX_BUILD_CORES wasm
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user