gcc-arm-embedded-14: 14.2.Rel1 -> 14.3.Rel1 (#428874)

authored by Pavol Rusnak and committed by GitHub 5b09dc45 9d1ce9c7

+20 -60
-12
pkgs/by-name/gc/gcc-arm-embedded-14/info-fix.patch
··· 1 - --- a/share/info/porting.info 2 - +++ b/share/info/porting.info 3 - @@ -16,9 +16,7 @@ a permission notice identical to this one. 4 - manual into another language, under the above conditions for modified 5 - versions. 6 - START-INFO-DIR-ENTRY 7 - -START-INFO-DIR-ENTRY 8 - * Embed with GNU: (porting-). Embed with GNU 9 - -END-INFO-DIR-ENTRY 10 - END-INFO-DIR-ENTRY 11 - 12 - Copyright (C) 1993, 1994, 1995 Cygnus Support
···
+20 -48
pkgs/by-name/gc/gcc-arm-embedded-14/package.nix
··· 6 libxcrypt-legacy, 7 xz, 8 zstd, 9 - makeBinaryWrapper, 10 - darwin, 11 }: 12 13 stdenv.mkDerivation rec { 14 pname = "gcc-arm-embedded"; 15 - version = "14.2.rel1"; 16 17 platform = 18 { 19 aarch64-darwin = "darwin-arm64"; 20 aarch64-linux = "aarch64"; 21 - x86_64-darwin = "darwin-x86_64"; 22 x86_64-linux = "x86_64"; 23 } 24 .${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); ··· 28 # hashes obtained from location ${url}.sha256asc 29 sha256 = 30 { 31 - aarch64-darwin = "c7c78ffab9bebfce91d99d3c24da6bf4b81c01e16cf551eb2ff9f25b9e0a3818"; 32 - aarch64-linux = "87330bab085dd8749d4ed0ad633674b9dc48b237b61069e3b481abd364d0a684"; 33 - x86_64-darwin = "2d9e717dd4f7751d18936ae1365d25916534105ebcb7583039eff1092b824505"; 34 - x86_64-linux = "62a63b981fe391a9cbad7ef51b17e49aeaa3e7b0d029b36ca1e9c3b2a9b78823"; 35 } 36 .${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); 37 }; 38 39 - nativeBuildInputs = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ 40 - makeBinaryWrapper 41 - darwin.sigtool 42 - ]; 43 - 44 - patches = [ 45 - # fix double entry in share/info/porting.info 46 - # https://github.com/NixOS/nixpkgs/issues/363902 47 - ./info-fix.patch 48 - ]; 49 - 50 dontConfigure = true; 51 dontBuild = true; 52 dontPatchELF = true; ··· 59 rm $out/bin/{arm-none-eabi-gdb-py,arm-none-eabi-gdb-add-index-py} || : 60 ''; 61 62 - preFixup = 63 - lib.optionalString stdenv.hostPlatform.isLinux '' 64 - find $out -type f | while read f; do 65 - patchelf "$f" > /dev/null 2>&1 || continue 66 - patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true 67 - patchelf --set-rpath ${ 68 - lib.makeLibraryPath [ 69 - "$out" 70 - stdenv.cc.cc 71 - ncurses6 72 - libxcrypt-legacy 73 - xz 74 - zstd 75 - ] 76 - } "$f" || true 77 - done 78 - '' 79 - + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) '' 80 - find "$out" -executable -type f | while read executable; do 81 - ( \ 82 - install_name_tool \ 83 - -change "/usr/local/opt/zstd/lib/libzstd.1.dylib" "${lib.getLib zstd}/lib/libzstd.1.dylib" \ 84 - -change "/usr/local/opt/xz/lib/liblzma.5.dylib" "${lib.getLib xz}/lib/liblzma.5.dylib" \ 85 - "$executable" \ 86 - && codesign -f -s - "$executable" \ 87 - ) || true 88 - done 89 - ''; 90 91 meta = with lib; { 92 description = "Pre-built GNU toolchain from ARM Cortex-M & Cortex-R processors"; ··· 106 platforms = [ 107 "x86_64-linux" 108 "aarch64-linux" 109 - "x86_64-darwin" 110 "aarch64-darwin" 111 ]; 112 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
··· 6 libxcrypt-legacy, 7 xz, 8 zstd, 9 }: 10 11 stdenv.mkDerivation rec { 12 pname = "gcc-arm-embedded"; 13 + version = "14.3.rel1"; 14 15 platform = 16 { 17 aarch64-darwin = "darwin-arm64"; 18 aarch64-linux = "aarch64"; 19 x86_64-linux = "x86_64"; 20 } 21 .${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); ··· 25 # hashes obtained from location ${url}.sha256asc 26 sha256 = 27 { 28 + aarch64-darwin = "30f4d08b219190a37cded6aa796f4549504902c53cfc3c7e044a8490b6eba1f7"; 29 + aarch64-linux = "2d465847eb1d05f876270494f51034de9ace9abe87a4222d079f3360240184d3"; 30 + x86_64-linux = "8f6903f8ceb084d9227b9ef991490413014d991874a1e34074443c2a72b14dbd"; 31 } 32 .${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); 33 }; 34 35 dontConfigure = true; 36 dontBuild = true; 37 dontPatchELF = true; ··· 44 rm $out/bin/{arm-none-eabi-gdb-py,arm-none-eabi-gdb-add-index-py} || : 45 ''; 46 47 + preFixup = lib.optionalString stdenv.hostPlatform.isLinux '' 48 + find $out -type f | while read f; do 49 + patchelf "$f" > /dev/null 2>&1 || continue 50 + patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true 51 + patchelf --set-rpath ${ 52 + lib.makeLibraryPath [ 53 + "$out" 54 + stdenv.cc.cc 55 + ncurses6 56 + libxcrypt-legacy 57 + xz 58 + zstd 59 + ] 60 + } "$f" || true 61 + done 62 + ''; 63 64 meta = with lib; { 65 description = "Pre-built GNU toolchain from ARM Cortex-M & Cortex-R processors"; ··· 79 platforms = [ 80 "x86_64-linux" 81 "aarch64-linux" 82 "aarch64-darwin" 83 ]; 84 sourceProvenance = with sourceTypes; [ binaryNativeCode ];