diff --git a/pkgs/by-name/la/laszip/package.nix b/pkgs/by-name/la/laszip/package.nix index 18d1351e6063..e0c450fbe9f6 100644 --- a/pkgs/by-name/la/laszip/package.nix +++ b/pkgs/by-name/la/laszip/package.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch, cmake, fixDarwinDylibNames, }: @@ -17,6 +18,14 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-xZ8IFnqrGt47lN+C6/ibgbIWqpObDf4RHPaGMXw0WZ4="; }; + patches = [ + # Fix aarch64-darwin build. + (fetchpatch { + url = "https://github.com/LASzip/LASzip/commit/2274e52076c5f4cbe2d826d690c21713ddd842b4.patch"; + hash = "sha256-C6AOJSY8JJCNNA5Fuz3OiQpzSFO/PwI6Wj+WBUW948k="; + }) + ]; + hardeningDisable = [ "format" ]; # -Werror=format-security nativeBuildInputs = [