protobuf3: fix parameter naming

This commit is contained in:
ryan4729 2018-10-15 01:57:47 -07:00
parent 3653909bb9
commit 12ededf3d8
6 changed files with 15 additions and 19 deletions

View file

@ -1,8 +1,7 @@
{ callPackage, externalProtoc, buildProtobuf, ... }:
{ callPackage, useExternalProtoc, buildProtobuf, ... }:
callPackage ./generic-v3.nix {
version = "3.1.0";
sha256 = "0qlvpsmqgh9nw0k4zrxlxf75pafi3p0ahz99v6761b903y8qyv4i";
externalProtoc = externalProtoc;
buildProtobuf = buildProtobuf;
inherit useExternalProtoc buildProtobuf;
}

View file

@ -1,8 +1,7 @@
{ callPackage, lib, externalProtoc, buildProtobuf, ... }:
{ callPackage, lib, useExternalProtoc, buildProtobuf, ... }:
lib.overrideDerivation (callPackage ./generic-v3.nix {
version = "3.4.1";
sha256 = "1lzxmbqlnmi34kymnf399azv86gmdbrf71xiad6wc24bzpkzqybb";
externalProtoc = externalProtoc;
buildProtobuf = buildProtobuf;
inherit useExternalProtoc buildProtobuf;
}) (attrs: { NIX_CFLAGS_COMPILE = "-Wno-error"; })

View file

@ -1,8 +1,7 @@
{ callPackage, lib, externalProtoc, buildProtobuf, ... }:
{ callPackage, lib, useExternalProtoc, buildProtobuf, ... }:
lib.overrideDerivation (callPackage ./generic-v3.nix {
version = "3.5.1.1";
sha256 = "1h4xydr5j2zg1888ncn8a1jvqq8fgpgckrmjg6lqzy9jpkvqvfdk";
externalProtoc = externalProtoc;
buildProtobuf = buildProtobuf;
inherit useExternalProtoc buildProtobuf;
}) (attrs: { NIX_CFLAGS_COMPILE = "-Wno-error"; })

View file

@ -1,8 +1,7 @@
{ callPackage, externalProtoc, buildProtobuf, ... }:
{ callPackage, useExternalProtoc, buildProtobuf, ... }:
callPackage ./generic-v3.nix {
version = "3.6.1";
sha256 = "1bg40miylzpy2wgbd7l7zjgmk43l12q38fq0zkn0vzy1lsj457sq";
externalProtoc = externalProtoc;
buildProtobuf = buildProtobuf;
inherit useExternalProtoc buildProtobuf;
}

View file

@ -1,7 +1,7 @@
{ stdenv
, fetchFromGitHub
, autoreconfHook, zlib, gmock, which, buildPackages
, externalProtoc
, useExternalProtoc
, buildProtobuf ? null
, version, sha256
, ...
@ -31,10 +31,10 @@ stdenv.mkDerivation rec {
'';
nativeBuildInputs = [ autoreconfHook buildPackages.which buildPackages.stdenv.cc ]
++ stdenv.lib.optional externalProtoc [ buildProtobuf ];
++ stdenv.lib.optional useExternalProtoc [ buildProtobuf ];
buildInputs = [ zlib ];
configureFlags = stdenv.lib.optional externalProtoc [ "--with-protoc=${buildProtobuf}/bin/protoc" ];
configureFlags = stdenv.lib.optional useExternalProtoc [ "--with-protoc=${buildProtobuf}/bin/protoc" ];
enableParallelBuilding = true;

View file

@ -11727,25 +11727,25 @@ with pkgs;
protobuf = protobuf3_6;
protobuf3_6 = callPackage ../development/libraries/protobuf/3.6.nix {
externalProtoc = (stdenv.hostPlatform != stdenv.buildPlatform);
useExternalProtoc = (stdenv.hostPlatform != stdenv.buildPlatform);
buildProtobuf = if (stdenv.hostPlatform != stdenv.buildPlatform)
then buildPackages.protobuf3_6
else null;
};
protobuf3_5 = callPackage ../development/libraries/protobuf/3.5.nix {
externalProtoc = (stdenv.hostPlatform != stdenv.buildPlatform);
useExternalProtoc = (stdenv.hostPlatform != stdenv.buildPlatform);
buildProtobuf = if (stdenv.hostPlatform != stdenv.buildPlatform)
then buildPackages.protobuf3_5
else null;
};
protobuf3_4 = callPackage ../development/libraries/protobuf/3.4.nix {
externalProtoc = (stdenv.hostPlatform != stdenv.buildPlatform);
useExternalProtoc = (stdenv.hostPlatform != stdenv.buildPlatform);
buildProtobuf = if (stdenv.hostPlatform != stdenv.buildPlatform)
then buildPackages.protobuf3_4
else null;
};
protobuf3_1 = callPackage ../development/libraries/protobuf/3.1.nix {
externalProtoc = (stdenv.hostPlatform != stdenv.buildPlatform);
useExternalProtoc = (stdenv.hostPlatform != stdenv.buildPlatform);
buildProtobuf = if (stdenv.hostPlatform != stdenv.buildPlatform)
then buildPackages.protobuf3_1
else null;