From ce105275e5c098b2a59664ac876500903c3e24e9 Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Mon, 3 Jul 2023 15:01:35 +0200 Subject: proxmox-backup-client: add explanatory comments to patches Signed-off-by: Christoph Heiss --- pkgs/applications/backup/proxmox-backup-client/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pkgs/applications/backup/proxmox-backup-client') diff --git a/pkgs/applications/backup/proxmox-backup-client/default.nix b/pkgs/applications/backup/proxmox-backup-client/default.nix index 3c737f8044b00..ad8f6f0f99755 100644 --- a/pkgs/applications/backup/proxmox-backup-client/default.nix +++ b/pkgs/applications/backup/proxmox-backup-client/default.nix @@ -49,17 +49,27 @@ rustPlatform.buildRustPackage rec { sourceRoot = "proxmox-backup"; + # These patches are essentially un-upstreamable, due to being "workarounds" related to the + # project structure. cargoPatches = [ + # A lot of Rust crates `proxmox-backup-client` depends on are only available through git (or + # Debian packages). This patch redirects all these dependencies to a local, relative path, which + # works in combination with the other three repos being checked out. (fetchpatch { name = "0001-re-route-dependencies-not-available-on-crates.io-to-.patch"; url = "https://aur.archlinux.org/cgit/aur.git/plain/0001-re-route-dependencies-not-available-on-crates.io-to-.patch?h=proxmox-backup-client&id=83a1f4dfcb04bd181b11954b1d9f5ddfcb72b3d0"; hash = "sha256-2YZtjbpYSbRk6rmpjKJeIO+V0YN5PrKsISONXMj4RG0="; }) + # This patch prevents the generation of the man-pages for other components inside the repo, + # which would require them too be built too. Thus avoid wasting resources and just skip them. (fetchpatch { name = "0002-docs-drop-all-but-client-man-pages.patch"; url = "https://aur.archlinux.org/cgit/aur.git/plain/0002-docs-drop-all-but-client-man-pages.patch?h=proxmox-backup-client&id=83a1f4dfcb04bd181b11954b1d9f5ddfcb72b3d0"; hash = "sha256-oJKQs4SwJvX5Zd0/l/vVr66aPO7Y4AC8byJHg9t1IhY="; }) + # `make docs` assumes that the binaries are located under `target/{debug,release}`, but due + # to how `buildRustPackage` works, they get put under `target/$RUSTC_TARGET/{debug,release}`. + # This patch simply fixes that up. ./0001-docs-Add-target-path-fixup-variable.patch ]; -- cgit 1.4.1