lol

gcc-arm-embedded-13: init at 13.2.rel1

+69
+68
pkgs/development/compilers/gcc-arm-embedded/13/default.nix
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , ncurses5 5 + , python38 6 + , libxcrypt-legacy 7 + , runtimeShell 8 + }: 9 + 10 + stdenv.mkDerivation rec { 11 + pname = "gcc-arm-embedded"; 12 + version = "13.2.rel1"; 13 + 14 + platform = { 15 + aarch64-darwin = "darwin-arm64"; 16 + aarch64-linux = "aarch64"; 17 + x86_64-darwin = "darwin-x86_64"; 18 + x86_64-linux = "x86_64"; 19 + }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); 20 + 21 + src = fetchurl { 22 + url = "https://developer.arm.com/-/media/Files/downloads/gnu/${version}/binrel/arm-gnu-toolchain-${version}-${platform}-arm-none-eabi.tar.xz"; 23 + sha256 = { 24 + aarch64-darwin = "39c44f8af42695b7b871df42e346c09fee670ea8dfc11f17083e296ea2b0d279"; 25 + aarch64-linux = "8fd8b4a0a8d44ab2e195ccfbeef42223dfb3ede29d80f14dcf2183c34b8d199a"; 26 + x86_64-darwin = "075faa4f3e8eb45e59144858202351a28706f54a6ec17eedd88c9fb9412372cc"; 27 + x86_64-linux = "6cd1bbc1d9ae57312bcd169ae283153a9572bd6a8e4eeae2fedfbc33b115fdbb"; 28 + }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); 29 + }; 30 + 31 + dontConfigure = true; 32 + dontBuild = true; 33 + dontPatchELF = true; 34 + dontStrip = true; 35 + 36 + installPhase = '' 37 + mkdir -p $out 38 + cp -r * $out 39 + ''; 40 + 41 + preFixup = '' 42 + find $out -type f | while read f; do 43 + patchelf "$f" > /dev/null 2>&1 || continue 44 + patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true 45 + patchelf --set-rpath ${lib.makeLibraryPath [ "$out" stdenv.cc.cc ncurses5 python38 libxcrypt-legacy ]} "$f" || true 46 + done 47 + ''; 48 + 49 + postFixup = '' 50 + mv $out/bin/arm-none-eabi-gdb $out/bin/arm-none-eabi-gdb-unwrapped 51 + cat <<EOF > $out/bin/arm-none-eabi-gdb 52 + #!${runtimeShell} 53 + export PYTHONPATH=${python38}/lib/python3.8 54 + export PYTHONHOME=${python38}/bin/python3.8 55 + exec $out/bin/arm-none-eabi-gdb-unwrapped "\$@" 56 + EOF 57 + chmod +x $out/bin/arm-none-eabi-gdb 58 + ''; 59 + 60 + meta = with lib; { 61 + description = "Pre-built GNU toolchain from ARM Cortex-M & Cortex-R processors"; 62 + homepage = "https://developer.arm.com/open-source/gnu-toolchain/gnu-rm"; 63 + license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ]; 64 + maintainers = with maintainers; [ prusnak prtzl ]; 65 + platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; 66 + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; 67 + }; 68 + }
+1
pkgs/top-level/all-packages.nix
··· 16252 16252 gcc-arm-embedded-10 = callPackage ../development/compilers/gcc-arm-embedded/10 { }; 16253 16253 gcc-arm-embedded-11 = callPackage ../development/compilers/gcc-arm-embedded/11 { }; 16254 16254 gcc-arm-embedded-12 = callPackage ../development/compilers/gcc-arm-embedded/12 { }; 16255 + gcc-arm-embedded-13 = callPackage ../development/compilers/gcc-arm-embedded/13 { }; 16255 16256 gcc-arm-embedded = gcc-arm-embedded-12; 16256 16257 16257 16258 # It would be better to match the default gcc so that there are no linking errors