From ad5be9cd0fab43484c45203f33d9aea06170d5a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6gler?= Date: Tue, 21 Mar 2023 22:48:46 +0100 Subject: [PATCH 1/2] perlPackages.ModuleBuild: fix cross-compilation --- pkgs/top-level/perl-packages.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index a6e747abbecae..a32bfc8380612 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -15233,6 +15233,9 @@ let url = "mirror://cpan/authors/id/L/LE/LEONT/Module-Build-0.4231.tar.gz"; hash = "sha256-fg9MaSwXQMGshOoU1+o9i8eYsvsmwJh3Ip4E9DCytxc="; }; + nativeBuildInputs = + # Override default intepreter perl.mini, which do not support dynamic linking + lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) buildPackages.perl; meta = { description = "Build and install Perl modules"; license = with lib.licenses; [ artistic1 gpl1Plus ]; From 8795962f6d8bc490b5a9fca2d4ef432eb805e178 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6gler?= Date: Sat, 8 Apr 2023 09:38:41 +0200 Subject: [PATCH 2/2] perlPackages.FileBaseDir: fix cross-compilation --- pkgs/top-level/perl-packages.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index a32bfc8380612..1784c325fde66 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -9015,6 +9015,9 @@ let url = "mirror://cpan/authors/id/K/KI/KIMRYAN/File-BaseDir-0.08.tar.gz"; hash = "sha256-wGX80+LyKudpk3vMlxuR+AKU1QCfrBQL+6g799NTBeM="; }; + nativeBuildInputs = + # Override default intepreter perl.mini, which do not support dynamic linking + lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) buildPackages.perl; configurePhase = '' runHook preConfigure perl Build.PL PREFIX="$out" prefix="$out"