mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 14:19:58 +03:00
Revert "protobuf3: support cross compilation"
This commit is contained in:
parent
dc6abb3db8
commit
f028f77abe
@ -1,12 +1,11 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, autoreconfHook, zlib, gmock, which, buildPackages
|
, autoreconfHook, zlib, gmock
|
||||||
, version, sha256
|
, version, sha256
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
mkProtobufDerivation = buildProtobuf: stdenv: stdenv.mkDerivation rec {
|
|
||||||
name = "protobuf-${version}";
|
name = "protobuf-${version}";
|
||||||
|
|
||||||
# make sure you test also -A pythonPackages.protobuf
|
# make sure you test also -A pythonPackages.protobuf
|
||||||
@ -29,10 +28,8 @@ mkProtobufDerivation = buildProtobuf: stdenv: stdenv.mkDerivation rec {
|
|||||||
--replace 'tmpnam(b)' '"'$TMPDIR'/foo"'
|
--replace 'tmpnam(b)' '"'$TMPDIR'/foo"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook buildPackages.which buildPackages.stdenv.cc buildProtobuf ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
|
||||||
buildInputs = [ zlib ];
|
buildInputs = [ zlib ];
|
||||||
configureFlags = if buildProtobuf == null then [] else [ "--with-protoc=${buildProtobuf}/bin/protoc" ];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
@ -57,7 +54,4 @@ mkProtobufDerivation = buildProtobuf: stdenv: stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
passthru.version = version;
|
passthru.version = version;
|
||||||
};
|
}
|
||||||
in mkProtobufDerivation(if (stdenv.buildPlatform != stdenv.hostPlatform)
|
|
||||||
then (mkProtobufDerivation null buildPackages.stdenv)
|
|
||||||
else null) stdenv
|
|
||||||
|
Loading…
Reference in New Issue
Block a user