3
0
Fork 0
forked from mirrors/nixpkgs

meguca: Disable building C++ client for Darwin

This commit is contained in:
Okina Matara 2018-07-02 05:43:57 -05:00
parent 05a337ce53
commit 3bec94f2e1

View file

@ -1,6 +1,5 @@
{ stdenv, buildGoPackage, fetchgit, pkgconfig, cmake, libcxx, libcxxabi
, ffmpeg-full, graphicsmagick, ghostscript, quicktemplate, go-bindata, easyjson
, nodePackages, emscripten }:
{ stdenv, buildGoPackage, fetchgit, pkgconfig, cmake, ffmpeg-full, ghostscript
, graphicsmagick, quicktemplate, go-bindata, easyjson, nodePackages, emscripten }:
buildGoPackage rec {
name = "meguca-unstable-${version}";
@ -22,7 +21,7 @@ buildGoPackage rec {
buildInputs = [
ffmpeg-full graphicsmagick ghostscript quicktemplate go-bindata easyjson
emscripten
] ++ stdenv.lib.optionals stdenv.isDarwin [ libcxx libcxxabi ];
];
buildPhase = ''
export HOME=$PWD
@ -32,8 +31,10 @@ buildGoPackage rec {
sed -i "/npm install --progress false --depth 0/d" Makefile
make generate_clean
go generate meguca/...
go build -p $NIX_BUILD_CORES meguca
make -j $NIX_BUILD_CORES client wasm
go build -v -p $NIX_BUILD_CORES meguca
make -j $NIX_BUILD_CORES client
'' + stdenv.lib.optionalString (!stdenv.isDarwin) ''
make -j $NIX_BUILD_CORES wasm
'';
installPhase = ''