From b3fd09e93b2bc69ff7b7f46d13e106f06e6f3311 Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Sun, 29 Aug 2021 16:59:28 +0200 Subject: [PATCH] build2: init at 0.13.0 Update pkgs/development/tools/build-managers/build2/default.nix Co-authored-by: figsoda Update pkgs/development/tools/build-managers/build2/default.nix Co-authored-by: figsoda Update pkgs/development/tools/build-managers/build2/default.nix Co-authored-by: Bobby Rong fix mac build and skip phases properly Update pkgs/development/tools/build-managers/build2/default.nix Co-authored-by: r-burns <52847440+r-burns@users.noreply.github.com> Update pkgs/development/tools/build-managers/build2/default.nix Co-authored-by: Sandro Update pkgs/development/tools/build-managers/build2/default.nix Co-authored-by: Sandro Update pkgs/development/tools/build-managers/build2/default.nix Co-authored-by: r-burns <52847440+r-burns@users.noreply.github.com> Update pkgs/development/tools/build-managers/build2/default.nix Co-authored-by: r-burns <52847440+r-burns@users.noreply.github.com> Update pkgs/development/tools/build-managers/build2/default.nix Co-authored-by: r-burns <52847440+r-burns@users.noreply.github.com> Update pkgs/development/tools/build-managers/build2/default.nix Co-authored-by: r-burns <52847440+r-burns@users.noreply.github.com> --- .../tools/build-managers/build2/default.nix | 40 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/tools/build-managers/build2/default.nix diff --git a/pkgs/development/tools/build-managers/build2/default.nix b/pkgs/development/tools/build-managers/build2/default.nix new file mode 100644 index 000000000000..2e0622ec7e4b --- /dev/null +++ b/pkgs/development/tools/build-managers/build2/default.nix @@ -0,0 +1,40 @@ +{ stdenv, lib, fetchurl }: + +stdenv.mkDerivation rec { + pname = "build2"; + version = "0.13.0"; + + src = fetchurl { + url = "https://download.build2.org/${version}/build2-toolchain-${version}.tar.xz"; + sha256 = "01hmr5y8aa28qchwy9ci8x5q746flwxmlxarmy4w9zay9nmvryms"; + }; + + dontConfigure = true; + dontInstall = true; + + buildPhase = '' + runHook preBuild + ./build.sh --local --trust yes --install-dir "$out" "$CXX" + runHook postBuild + ''; + + meta = with lib; { + homepage = "https://www.build2.org/"; + description = "build2 build system"; + license = licenses.mit; + longDescription = '' + build2 is an open source (MIT), cross-platform build toolchain + that aims to approximate Rust Cargo's convenience for developing + and packaging C/C++ projects while providing more depth and + flexibility, especially in the build system. + + build2 is a hierarchy of tools consisting of a general-purpose + build system, package manager (for package consumption), and + project manager (for project development). It is primarily aimed + at C/C++ projects as well as mixed-language projects involving + one of these languages (see bash and rust modules, for example). + ''; + platforms = platforms.all; + maintainers = with maintainers; [ hiro98 r-burns ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3597b93ea47d..8b5877a91dde 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13439,6 +13439,8 @@ with pkgs; buck = callPackage ../development/tools/build-managers/buck { }; + build2 = callPackage ../development/tools/build-managers/build2 { }; + buildkite-agent = callPackage ../development/tools/continuous-integration/buildkite-agent { }; buildkite-agent-metrics = callPackage ../servers/monitoring/buildkite-agent-metrics { };