nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 bubblewrap,
6 makeBinaryWrapper,
7 cmake,
8 pkg-config,
9 ninja,
10 grpc,
11 gbenchmark,
12 gtest,
13 protobuf,
14 glog,
15 nlohmann_json,
16 zlib,
17 openssl,
18 libuuid,
19 tomlplusplus,
20 fuse3,
21 nix-update-script,
22}:
23stdenv.mkDerivation (finalAttrs: {
24 pname = "buildbox";
25 version = "1.3.21";
26
27 src = fetchFromGitLab {
28 owner = "BuildGrid";
29 repo = "buildbox/buildbox";
30 tag = finalAttrs.version;
31 hash = "sha256-gZ4PnaIiMPh18Yy2120yIEaQaFpzGNnWXzS7Uw+n/+k=";
32 };
33
34 nativeBuildInputs = [
35 cmake
36 makeBinaryWrapper
37 ninja
38 pkg-config
39 ];
40
41 buildInputs = [
42 bubblewrap
43 fuse3
44 gbenchmark
45 glog
46 grpc
47 gtest
48 libuuid
49 nlohmann_json
50 openssl
51 protobuf
52 tomlplusplus
53 zlib
54 ];
55
56 postFixup = ''
57 wrapProgram $out/bin/buildbox-run --prefix PATH : ${lib.makeBinPath [ bubblewrap ]}
58 '';
59
60 passthru.updateScript = nix-update-script { };
61
62 meta = {
63 description = "Set of tools for remote worker build execution";
64 homepage = "https://gitlab.com/BuildGrid/buildbox/";
65 license = lib.licenses.asl20;
66 platforms = lib.platforms.linux;
67 maintainers = with lib.maintainers; [ shymega ];
68 };
69})