diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-06-02 13:47:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-02 13:47:39 +0200 |
commit | 4bf9ce4a4ca07dd4bee10c55b9bfdfc25abd07f8 (patch) | |
tree | 079fb9b7a73177ccbbbdf5c1d2181992272aa056 /pkgs | |
parent | c36f27e811987c8080c693042e18c6850dedf995 (diff) | |
parent | 258c4925a50a64a4c43cd7de661520ef6b8a42ed (diff) |
Merge pull request #316224 from aehlig/justbuild-1.3.1
justbuild: 1.2.4 -> 1.3.1
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/by-name/ju/justbuild/package.nix | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/pkgs/by-name/ju/justbuild/package.nix b/pkgs/by-name/ju/justbuild/package.nix index 550aa33497357..192cf23f20897 100644 --- a/pkgs/by-name/ju/justbuild/package.nix +++ b/pkgs/by-name/ju/justbuild/package.nix @@ -11,7 +11,7 @@ openssl, pkg-config, - protobuf_24, + protobuf_25, grpc, pandoc, python3, @@ -19,6 +19,7 @@ wget, lib, jq, + coreutils, curl, libarchive, @@ -27,13 +28,13 @@ let stdenv = gccStdenv; in stdenv.mkDerivation rec { pname = "justbuild"; - version = "1.2.4"; + version = "1.3.1"; src = fetchFromGitHub { owner = "just-buildsystem"; repo = "justbuild"; rev = "v${version}"; - sha256 = "sha256-+ZQuMWqZyK7x/tPSi2ldSOpAexpX6ku4ikk/V8m6Ksg="; + sha256 = "sha256-kv7HpDEYZml5uk06s8Cxt5rEpxaJBz9s+or6Od1q4Io="; }; bazelapi = fetchurl { @@ -54,6 +55,7 @@ stdenv.mkDerivation rec { python3 unzip wget + coreutils # Dependencies of just cli11 @@ -75,21 +77,14 @@ stdenv.mkDerivation rec { grpc libgit2 openssl - # Using protobuf 24 because the current version of grpc is build using - # protobuf 24 and therefore the older protobuf version causes errors - # during build. - # Upstream currently uses protobuf 23 for bundled builds - # For future updates: The currently used version can be found in the file - # etc/repos.json: https://github.com/just-buildsystem/justbuild/blob/master/etc/repos.json - # under the key .repositories.protobuf - protobuf_24 + protobuf_25 python3 ]; postPatch = '' sed -ie 's|\./bin/just-mr.py|${python3}/bin/python3 ./bin/just-mr.py|' bin/bootstrap.py sed -ie 's|#!/usr/bin/env python3|#!${python3}/bin/python3|' bin/parallel-bootstrap-traverser.py - jq '.repositories.protobuf.pkg_bootstrap.local_path = "${protobuf_24}"' etc/repos.json > etc/repos.json.patched + jq '.repositories.protobuf.pkg_bootstrap.local_path = "${protobuf_25}"' etc/repos.json > etc/repos.json.patched mv etc/repos.json.patched etc/repos.json jq '.repositories.com_github_grpc_grpc.pkg_bootstrap.local_path = "${grpc}"' etc/repos.json > etc/repos.json.patched mv etc/repos.json.patched etc/repos.json @@ -133,7 +128,6 @@ stdenv.mkDerivation rec { __EOF__ export PKG_CONFIG_PATH=`pwd`/.pkgconfig''${PKG_CONFIG_PATH:+:}$PKG_CONFIG_PATH - # Bootstrap just export PACKAGE=YES export NON_LOCAL_DEPS='[ "google_apis", "bazel_remote_apis" ]' @@ -143,8 +137,7 @@ stdenv.mkDerivation rec { python3 ./bin/bootstrap.py `pwd` ../build "`pwd`/.distfiles" # Build compiled just-mr - mkdir ../build-root - ../build/out/bin/just install 'installed just-mr' -c ../build/build-conf.json -C ../build/repo-conf.json --output-dir ../build/out --local-build-root ../build-root + ../build/out/bin/just install 'installed just-mr' -c ../build/build-conf.json -C ../build/repo-conf.json --output-dir ../build/out --local-build-root ../build/.just # convert man pages from Markdown to man find "./share/man" -name "*.md" -exec sh -c '${pandoc}/bin/pandoc --standalone --to man -o "''${0%.md}" "''${0}"' {} \; @@ -160,6 +153,7 @@ stdenv.mkDerivation rec { install -m 755 -Dt "$out/bin" "../build/out/bin/just" install -m 755 -Dt "$out/bin" "../build/out/bin/just-mr" install -m 755 -DT "bin/just-import-git.py" "$out/bin/just-import-git" + install -m 755 -DT "bin/just-deduplicate-repos.py" "$out/bin/just-deduplicate-repos" mkdir -p "$out/share/bash-completion/completions" install -m 0644 ./share/just_complete.bash "$out/share/bash-completion/completions/just" |