From 2dc044b8f82912b85c0ae25a9f41042a5f64a2ed Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Fri, 6 Jun 2025 17:35:42 +0200 Subject: [PATCH] proxmox-backup-client: avoid `git` as buildInput The build script of the `pbs-buildcfg` crate either uses `REPOID` from the environment or runs `git rev-parse HEAD`. The latter case results in an empty string anyway, so just fast-track it. Signed-off-by: Christoph Heiss --- pkgs/by-name/pr/proxmox-backup-client/package.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/pr/proxmox-backup-client/package.nix b/pkgs/by-name/pr/proxmox-backup-client/package.nix index 8350bd9f1684..9ac5e32ae4f4 100644 --- a/pkgs/by-name/pr/proxmox-backup-client/package.nix +++ b/pkgs/by-name/pr/proxmox-backup-client/package.nix @@ -10,7 +10,6 @@ libuuid, acl, libxcrypt, - git, installShellFiles, sphinx, systemd, @@ -149,8 +148,10 @@ rustPlatform.buildRustPackage { doCheck = false; + # pbs-buildcfg requires this set, would be the git commit id + REPOID = ""; + nativeBuildInputs = [ - git pkg-config pkgconf rustPlatform.bindgenHook