|
| 1 | +# Copyright (c) 2024 by Fernride GmbH. All rights reserved. |
| 2 | +# |
| 3 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +# you may not use this file except in compliance with the License. |
| 5 | +# You may obtain a copy of the License at |
| 6 | +# |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +# |
| 9 | +# Unless required by applicable law or agreed to in writing, software |
| 10 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +# See the License for the specific language governing permissions and |
| 13 | +# limitations under the License. |
| 14 | +# |
| 15 | +# SPDX-License-Identifier: Apache-2.0 |
| 16 | + |
| 17 | +"""This module prepares the ncurses dependency.""" |
| 18 | + |
| 19 | +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 20 | +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") |
| 21 | + |
| 22 | +def load_ncurses_repositories(): |
| 23 | + maybe( |
| 24 | + http_archive, |
| 25 | + name = "rules_foreign_cc", |
| 26 | + sha256 = "a2e6fb56e649c1ee79703e99aa0c9d13c6cc53c8d7a0cbb8797ab2888bbc99a3", |
| 27 | + strip_prefix = "rules_foreign_cc-0.12.0", |
| 28 | + url = "https://github.com/bazelbuild/rules_foreign_cc/releases/download/0.12.0/rules_foreign_cc-0.12.0.tar.gz", |
| 29 | + ) |
| 30 | + maybe( |
| 31 | + http_archive, |
| 32 | + name = "ncurses", |
| 33 | + url = "https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.3.tar.gz", |
| 34 | + sha256 = "97fc51ac2b085d4cde31ef4d2c3122c21abc217e9090a43a30fc5ec21684e059", |
| 35 | + strip_prefix = "ncurses-6.3", |
| 36 | + build_file = "//bazel/ncurses:ncurses.BUILD", |
| 37 | + ) |
0 commit comments