diff --git a/pkgs/by-name/pr/proxmox-backup-client/package.nix b/pkgs/by-name/pr/proxmox-backup-client/package.nix index 24b5b2a23997..6bd8a0e52de4 100644 --- a/pkgs/by-name/pr/proxmox-backup-client/package.nix +++ b/pkgs/by-name/pr/proxmox-backup-client/package.nix @@ -11,9 +11,7 @@ libxcrypt, installShellFiles, sphinx, - systemd, stdenv, - fetchpatch, versionCheckHook, }: @@ -111,6 +109,13 @@ rustPlatform.buildRustPackage { cp ${./Cargo.lock} Cargo.lock rm .cargo/config.toml + + # avoid some unnecessary dependendcies, stemming from greedy linkage by rustc + # see also upstream Makefile for similar workaround + mkdir -p .dep-stubs + echo '!' >.dep-stubs/libsystemd.a + echo '!' >.dep-stubs/libuuid.a + echo '!' >.dep-stubs/libcrypt.a ''; postBuild = '' @@ -145,6 +150,8 @@ rustPlatform.buildRustPackage { "--bin=pxar" ]; + RUSTFLAGS = [ "-L.dep-stubs" ]; + doCheck = false; # pbs-buildcfg requires this set, would be the git commit id @@ -156,15 +163,15 @@ rustPlatform.buildRustPackage { installShellFiles sphinx ]; + buildInputs = [ openssl fuse3 - libuuid acl - libxcrypt - systemd.dev ]; + strictDeps = true; + doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = "version";