3
0
Fork 0
forked from mirrors/nixpkgs

protobuf3: remove unnecessary null check

This commit is contained in:
ryan4729 2018-10-15 03:13:20 -07:00
parent 1f9188b708
commit 65a81afcf5

View file

@ -29,8 +29,7 @@ mkProtobufDerivation = buildProtobuf: stdenv: stdenv.mkDerivation rec {
--replace 'tmpnam(b)' '"'$TMPDIR'/foo"'
'';
nativeBuildInputs = [ autoreconfHook buildPackages.which buildPackages.stdenv.cc ]
++ (if buildProtobuf == null then [] else [ buildProtobuf ]);
nativeBuildInputs = [ autoreconfHook buildPackages.which buildPackages.stdenv.cc buildProtobuf ];
buildInputs = [ zlib ];
configureFlags = if buildProtobuf == null then [] else [ "--with-protoc=${buildProtobuf}/bin/protoc" ];