protobuf3: remove unnecessary null check

wip/yesman
ryan4729 6 years ago
parent 1f9188b708
commit 65a81afcf5
  1. 3
      pkgs/development/libraries/protobuf/generic-v3.nix

@ -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" ];

Loading…
Cancel
Save