Skip to content

framework-tool-tui: add missing build input libgit2 - #585577

Merged
RossSmyth merged 1 commit into
NixOS:masterfrom
vpayno:master-fix-framework-tool-tui
Nov 9, 2026
Merged

RossSmyth merged 1 commit into
NixOS:masterfrom
vpayno:master-fix-framework-tool-tui

Conversation

@vpayno

@vpayno vpayno commented Nov 9, 2026

Copy link
Copy Markdown
Contributor
warning: [email protected]+1.9.2: failed to probe system libgit2:
error: failed to run custom build command for `libgit2-sys v0.18.3+1.9.2`

Caused by:
  process didn't exit successfully: `/build/source/target/release/build/libgit2-sys-0ec956c3b4848eba/build-script-build` (exit status: 101)
  --- stdout
  cargo:rustc-check-cfg=cfg(libgit2_vendored,)
  cargo:rerun-if-env-changed=LIBGIT2_NO_VENDOR
  cargo:rerun-if-env-changed=LIBGIT2_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=LIBGIT2_STATIC
  cargo:rerun-if-env-changed=LIBGIT2_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:warning=failed to probe system libgit2:
  pkg-config exited with status code 1
  > PKG_CONFIG_PATH=/nix/store/kwas12i61rk5d6ilfz9hiala1fawjs2r-systemd-minimal-libs-262-dev/lib/pkgconfig:/nix/store/kwas12i61rk5d6ilfz9hiala1fawjs2r-systemd-minimal-libs-262-dev/share/pkg>

  The system library `libgit2` required by crate `libgit2-sys` was not found.
  The file `libgit2.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
  PKG_CONFIG_PATH contains the following:
      - /nix/store/kwas12i61rk5d6ilfz9hiala1fawjs2r-systemd-minimal-libs-262-dev/lib/pkgconfig
      - /nix/store/kwas12i61rk5d6ilfz9hiala1fawjs2r-systemd-minimal-libs-262-dev/share/pkgconfig

  HINT: you may need to install a package such as libgit2, libgit2-dev or libgit2-devel.

  --- stderr

  thread 'main' (2035) panicked at /build/framework-tool-tui-0.8.6-vendor/source-registry-0/libgit2-sys-0.18.3+1.9.2/build.rs:45:13:
  The environment variable `LIBGIT2_NO_VENDOR` has been set but no compatible system libgit2 could be found.
  The build is now aborting. To disable, unset the variable or use `LIBGIT2_NO_VENDOR=0`.

  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Things done

```text
warning: [email protected]+1.9.2: failed to probe system libgit2:
error: failed to run custom build command for `libgit2-sys v0.18.3+1.9.2`

Caused by:
  process didn't exit successfully: `/build/source/target/release/build/libgit2-sys-0ec956c3b4848eba/build-script-build` (exit status: 101)
  --- stdout
  cargo:rustc-check-cfg=cfg(libgit2_vendored,)
  cargo:rerun-if-env-changed=LIBGIT2_NO_VENDOR
  cargo:rerun-if-env-changed=LIBGIT2_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=LIBGIT2_STATIC
  cargo:rerun-if-env-changed=LIBGIT2_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
  cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
  cargo:warning=failed to probe system libgit2:
  pkg-config exited with status code 1
  > PKG_CONFIG_PATH=/nix/store/kwas12i61rk5d6ilfz9hiala1fawjs2r-systemd-minimal-libs-262-dev/lib/pkgconfig:/nix/store/kwas12i61rk5d6ilfz9hiala1fawjs2r-systemd-minimal-libs-262-dev/share/pkg>

  The system library `libgit2` required by crate `libgit2-sys` was not found.
  The file `libgit2.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
  PKG_CONFIG_PATH contains the following:
      - /nix/store/kwas12i61rk5d6ilfz9hiala1fawjs2r-systemd-minimal-libs-262-dev/lib/pkgconfig
      - /nix/store/kwas12i61rk5d6ilfz9hiala1fawjs2r-systemd-minimal-libs-262-dev/share/pkgconfig

  HINT: you may need to install a package such as libgit2, libgit2-dev or libgit2-devel.

  --- stderr

  thread 'main' (2035) panicked at /build/framework-tool-tui-0.8.6-vendor/source-registry-0/libgit2-sys-0.18.3+1.9.2/build.rs:45:13:
  The environment variable `LIBGIT2_NO_VENDOR` has been set but no compatible system libgit2 could be found.
  The build is now aborting. To disable, unset the variable or use `LIBGIT2_NO_VENDOR=0`.

  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
@nixpkgs-ci
nixpkgs-ci Bot requested review from autra and griffi-gh November 9, 2026 17:00
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Nov 9, 2026

@autra autra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks @vpayno

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Nov 9, 2026
@RossSmyth
RossSmyth added this pull request to the merge queue Nov 9, 2026
Merged via the queue into NixOS:master with commit 7dd5562 Nov 9, 2026
33 checks passed
@vpayno
vpayno deleted the master-fix-framework-tool-tui branch November 10, 2026 02:01
flexiondotorg added a commit to wimpysworld/nix-config that referenced this pull request Nov 10, 2026
The Cargo setup hook now sets LIBGIT2_NO_VENDOR, so libgit2-sys no
longer builds its bundled copy and the unstable package fails without
libgit2 in buildInputs. Remove the override once NixOS/nixpkgs#585577
reaches nixos-unstable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants