From f9272f3e3a96c7efaa0a67fe98c02aeeb3f02cca Mon Sep 17 00:00:00 2001 From: Dom Rodriguez Date: Fri, 27 Dec 2024 23:42:18 +0000 Subject: [PATCH] buildbox: init at 1.3.7 (cherry picked from commit e8eec7ac439b37776f98f4ebc368067cb383a9eb) --- pkgs/by-name/bu/buildbox/package.nix | 66 ++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 pkgs/by-name/bu/buildbox/package.nix diff --git a/pkgs/by-name/bu/buildbox/package.nix b/pkgs/by-name/bu/buildbox/package.nix new file mode 100644 index 000000000000..eae793cf4599 --- /dev/null +++ b/pkgs/by-name/bu/buildbox/package.nix @@ -0,0 +1,66 @@ +{ + lib, + stdenv, + fetchFromGitLab, + bubblewrap, + makeBinaryWrapper, + cmake, + pkg-config, + ninja, + grpc, + gbenchmark, + gtest, + protobuf, + glog, + nlohmann_json, + zlib, + openssl, + libuuid, + tomlplusplus, + fuse3, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "buildbox"; + version = "1.3.7"; + + src = fetchFromGitLab { + owner = "BuildGrid"; + repo = "buildbox/buildbox"; + tag = finalAttrs.version; + hash = "sha256-US0qJrKoAYR4rMmolC8jx7IpQ2PiHZy7L2bog+I3G48="; + }; + + nativeBuildInputs = [ + cmake + makeBinaryWrapper + ninja + pkg-config + ]; + + buildInputs = [ + bubblewrap + fuse3 + gbenchmark + glog + grpc + gtest + libuuid + nlohmann_json + openssl + protobuf + tomlplusplus + zlib + ]; + + postFixup = '' + makeWrapper $out/bin/buildbox-run-bubblewrap $out/bin/buildbox-run --prefix PATH : ${lib.makeBinPath [ bubblewrap ]} + ''; + + meta = { + description = "Set of tools for remote worker build execution"; + homepage = "https://gitlab.com/BuildGrid/buildbox/"; + license = lib.licenses.asl20; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ shymega ]; + }; +})