Loading pkgs/by-name/li/libphonenumber/package.nix +17 −7 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ fetchFromGitHub, buildPackages, cmake, enableTests ? true, gtest, jre, pkg-config, Loading Loading @@ -31,24 +32,33 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake pkg-config ] ++ lib.optionals enableTests [ gtest jre pkg-config ]; buildInputs = [ boost icu protobuf ] ++ lib.optionals enableTests [ boost ]; cmakeDir = "../cpp"; doCheck = true; doCheck = enableTests; checkTarget = "tests"; cmakeFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ cmakeFlags = lib.optionals (!enableTests) [ (lib.cmakeBool "REGENERATE_METADATA" false) (lib.cmakeBool "USE_BOOST" false) ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ (lib.cmakeFeature "CMAKE_CROSSCOMPILING_EMULATOR" (stdenv.hostPlatform.emulator buildPackages)) (lib.cmakeFeature "PROTOC_BIN" (lib.getExe buildPackages.protobuf)) ]; Loading Loading
pkgs/by-name/li/libphonenumber/package.nix +17 −7 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ fetchFromGitHub, buildPackages, cmake, enableTests ? true, gtest, jre, pkg-config, Loading Loading @@ -31,24 +32,33 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake pkg-config ] ++ lib.optionals enableTests [ gtest jre pkg-config ]; buildInputs = [ boost icu protobuf ] ++ lib.optionals enableTests [ boost ]; cmakeDir = "../cpp"; doCheck = true; doCheck = enableTests; checkTarget = "tests"; cmakeFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ cmakeFlags = lib.optionals (!enableTests) [ (lib.cmakeBool "REGENERATE_METADATA" false) (lib.cmakeBool "USE_BOOST" false) ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ (lib.cmakeFeature "CMAKE_CROSSCOMPILING_EMULATOR" (stdenv.hostPlatform.emulator buildPackages)) (lib.cmakeFeature "PROTOC_BIN" (lib.getExe buildPackages.protobuf)) ]; Loading