You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nix-build -I nixpkgs=channel:nixpkgs-unstable '<nixpkgs>' -A pkgsCross.aarch64-multiplatform.stow
Build log
checking for perl... no
checking for perl5... no
configure: error: Perl not found; check your $PATH.
Additional context
The problem occurs because adding perl to buildInputs does not add it to nativeBuildInputs for cross compilation. I'm not entirely sure if perl is needed to build the derivation, but adding perl to nativeBuildInputs solves the problem:
Steps To Reproduce
Steps to reproduce the behavior:
pkgsCross.xxxx.stow
. E.g.:nix-build -I nixpkgs=channel:nixpkgs-unstable '<nixpkgs>' -A pkgsCross.aarch64-multiplatform.stow
Build log
Additional context
The problem occurs because adding perl to
buildInputs
does not add it tonativeBuildInputs
for cross compilation. I'm not entirely sure if perl is needed to build the derivation, but adding perl to nativeBuildInputs solves the problem:Note that this issue might exist for other packages too.
Related forum post: https://discourse.nixos.org/t/cross-compiling-perl-packages-like-stow-riscv-aarch/39221
Notify maintainers
@sarcasticadmin
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: