Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

hdf4: fix build on aarch64-linux (#47209)

Pull in the Debian patches for AArch64 support, and a bonus patch for
reproducible builds while we're at it.

authored by

Andrew Dunham and committed by
xeji
104014c6 ccd28621

+17
+17
pkgs/tools/misc/hdf4/default.nix
··· 1 { stdenv 2 , fetchurl 3 , cmake 4 , libjpeg ··· 13 url = "https://support.hdfgroup.org/ftp/HDF/releases/HDF${version}/src/hdf-${version}.tar.bz2"; 14 sha256 = "0n29klrrbwan9307np0d9hr128dlpc4nnlf57a140080ll3jmp8l"; 15 }; 16 17 buildInputs = [ 18 cmake
··· 1 { stdenv 2 + , fetchpatch 3 , fetchurl 4 , cmake 5 , libjpeg ··· 14 url = "https://support.hdfgroup.org/ftp/HDF/releases/HDF${version}/src/hdf-${version}.tar.bz2"; 15 sha256 = "0n29klrrbwan9307np0d9hr128dlpc4nnlf57a140080ll3jmp8l"; 16 }; 17 + 18 + patches = let 19 + # The Debian patch revision to fetch from; this may differ from our package 20 + # version, but older patches should still apply. 21 + patchRev = "4.2.13-4"; 22 + getPatch = name: sha256: fetchpatch { 23 + inherit sha256; 24 + url = "https://salsa.debian.org/debian-gis-team/hdf4/raw/debian/${patchRev}/debian/patches/${name}"; 25 + }; 26 + 27 + in [ 28 + (getPatch "64bit" "1xqk9zpch4m6ipa0f3x2cm8rwaz4p0ppp1vqglvz18j6q91p8b5y") 29 + (getPatch "hdfi.h" "01fr9csylnvk9jd9jn9y23bvxy192s07p32pr76mm3gwhgs9h7r4") 30 + (getPatch "hdf-4.2.10-aarch64.patch" "1hl0xw5pd9xhpq49xpwgg7c4z6vv5p19x6qayixw0myvgwj1r4zn") 31 + (getPatch "reproducible-builds.patch" "02j639w26xkxpxx3pdhbi18ywz8w3qmjpqjb83n47gq29y4g13hc") 32 + ]; 33 34 buildInputs = [ 35 cmake