Merge pull request #182844 from misuzu/nix-serve-aarch64-darwin

nix.perl-bindings: fix build on aarch64-darwin

authored by

Stig and committed by
GitHub
11c30306 387fef61

+5 -1
+1 -1
pkgs/tools/package-management/nix/common.nix
··· 213 passthru = { 214 inherit aws-sdk-cpp boehmgc; 215 216 - perl-bindings = perl.pkgs.toPerlModule (callPackage ./nix-perl.nix { nix = self; }); 217 }; 218 }; 219 in self
··· 213 passthru = { 214 inherit aws-sdk-cpp boehmgc; 215 216 + perl-bindings = perl.pkgs.toPerlModule (callPackage ./nix-perl.nix { nix = self; inherit Security; }); 217 }; 218 }; 219 in self
+4
pkgs/tools/package-management/nix/nix-perl.nix
··· 1 { stdenv 2 , perl 3 , pkg-config 4 , curl ··· 8 , autoreconfHook 9 , autoconf-archive 10 , nlohmann_json 11 }: 12 13 stdenv.mkDerivation { ··· 15 inherit (nix) version src; 16 17 postUnpack = "sourceRoot=$sourceRoot/perl"; 18 19 # This is not cross-compile safe, don't have time to fix right now 20 # but noting for future travellers.
··· 1 { stdenv 2 + , lib 3 , perl 4 , pkg-config 5 , curl ··· 9 , autoreconfHook 10 , autoconf-archive 11 , nlohmann_json 12 + , Security 13 }: 14 15 stdenv.mkDerivation { ··· 17 inherit (nix) version src; 18 19 postUnpack = "sourceRoot=$sourceRoot/perl"; 20 + 21 + buildInputs = lib.optional (stdenv.isDarwin) Security; 22 23 # This is not cross-compile safe, don't have time to fix right now 24 # but noting for future travellers.