Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions pkgs/fleet/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,17 @@ let
cargoBuildFlags = cargoFlags;
inherit doCheck;

# Same OpenSSL inputs as the crane path above (#16946):
# openssl-sys is in every variant's graph (#16152) and needs
# pkg-config discovery of a system OpenSSL in the sandbox;
# callers that pass no craneLib (e.g.
# nixos/home/laptop-backups.nix) hit this branch and failed
# with "The pkg-config command could not be found". The
# static variants keep the explicit OPENSSL_* env wiring
# below instead (pkgsStatic OpenSSL), so no inputs for them.
buildInputs = lib.optionals (!static) [ openssl ];
nativeBuildInputs = lib.optionals (!static) [ pkgconf ];

# Same check-phase HOME fix as the crane path above (#6400).
preCheck = ''
export HOME="$TMPDIR/fleet-check-home"
Expand Down