gcc-arm-embedded: remove dependency on ancient Python (#398190)

authored by Pavol Rusnak and committed by GitHub 439e0a24 b7e09449

+20 -54
+1 -1
pkgs/by-name/gc/gcc-arm-embedded-10/package.nix
··· 40 ln -s $out/share/doc/gcc-arm-none-eabi/man $out/man 41 ''; 42 43 - preFixup = '' 44 find $out -type f | while read f; do 45 patchelf "$f" > /dev/null 2>&1 || continue 46 patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true
··· 40 ln -s $out/share/doc/gcc-arm-none-eabi/man $out/man 41 ''; 42 43 + preFixup = lib.optionalString stdenv.isLinux '' 44 find $out -type f | while read f; do 45 patchelf "$f" > /dev/null 2>&1 || continue 46 patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true
+7 -16
pkgs/by-name/gc/gcc-arm-embedded-11/package.nix
··· 3 stdenv, 4 fetchurl, 5 ncurses5, 6 - python39, 7 libxcrypt-legacy, 8 - runtimeShell, 9 }: 10 11 stdenv.mkDerivation rec { ··· 39 installPhase = '' 40 mkdir -p $out 41 cp -r * $out 42 ''; 43 44 - preFixup = '' 45 find $out -type f | while read f; do 46 patchelf "$f" > /dev/null 2>&1 || continue 47 patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true ··· 50 "$out" 51 stdenv.cc.cc 52 ncurses5 53 - python39 54 libxcrypt-legacy 55 ] 56 } "$f" || true 57 done 58 ''; 59 60 - postFixup = '' 61 - mv $out/bin/arm-none-eabi-gdb $out/bin/arm-none-eabi-gdb-unwrapped 62 - cat <<EOF > $out/bin/arm-none-eabi-gdb 63 - #!${runtimeShell} 64 - export PYTHONPATH=${python39}/lib/python3.9 65 - export PYTHONHOME=${python39.interpreter} 66 - exec $out/bin/arm-none-eabi-gdb-unwrapped "\$@" 67 - EOF 68 - chmod +x $out/bin/arm-none-eabi-gdb 69 - ''; 70 - 71 meta = with lib; { 72 description = "Pre-built GNU toolchain from ARM Cortex-M & Cortex-R processors"; 73 homepage = "https://developer.arm.com/open-source/gnu-toolchain/gnu-rm"; ··· 79 lgpl3 80 mit 81 ]; 82 - maintainers = with maintainers; [ prusnak ]; 83 platforms = [ 84 "x86_64-linux" 85 "aarch64-linux"
··· 3 stdenv, 4 fetchurl, 5 ncurses5, 6 libxcrypt-legacy, 7 }: 8 9 stdenv.mkDerivation rec { ··· 37 installPhase = '' 38 mkdir -p $out 39 cp -r * $out 40 + # these binaries require ancient Python 3.8 not available in Nixpkgs 41 + rm $out/bin/{arm-none-eabi-gdb-py,arm-none-eabi-gdb-add-index-py} || : 42 ''; 43 44 + preFixup = lib.optionalString stdenv.isLinux '' 45 find $out -type f | while read f; do 46 patchelf "$f" > /dev/null 2>&1 || continue 47 patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true ··· 50 "$out" 51 stdenv.cc.cc 52 ncurses5 53 libxcrypt-legacy 54 ] 55 } "$f" || true 56 done 57 ''; 58 59 meta = with lib; { 60 description = "Pre-built GNU toolchain from ARM Cortex-M & Cortex-R processors"; 61 homepage = "https://developer.arm.com/open-source/gnu-toolchain/gnu-rm"; ··· 67 lgpl3 68 mit 69 ]; 70 + maintainers = with maintainers; [ 71 + prusnak 72 + prtzl 73 + ]; 74 platforms = [ 75 "x86_64-linux" 76 "aarch64-linux"
+3 -15
pkgs/by-name/gc/gcc-arm-embedded-12/package.nix
··· 3 stdenv, 4 fetchurl, 5 ncurses5, 6 - python39, 7 libxcrypt-legacy, 8 - runtimeShell, 9 }: 10 11 stdenv.mkDerivation rec { ··· 41 installPhase = '' 42 mkdir -p $out 43 cp -r * $out 44 ''; 45 46 - preFixup = '' 47 find $out -type f | while read f; do 48 patchelf "$f" > /dev/null 2>&1 || continue 49 patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true ··· 52 "$out" 53 stdenv.cc.cc 54 ncurses5 55 - python39 56 libxcrypt-legacy 57 ] 58 } "$f" || true 59 done 60 - ''; 61 - 62 - postFixup = '' 63 - mv $out/bin/arm-none-eabi-gdb $out/bin/arm-none-eabi-gdb-unwrapped 64 - cat <<EOF > $out/bin/arm-none-eabi-gdb 65 - #!${runtimeShell} 66 - export PYTHONPATH=${python39}/lib/python3.9 67 - export PYTHONHOME=${python39.interpreter} 68 - exec $out/bin/arm-none-eabi-gdb-unwrapped "\$@" 69 - EOF 70 - chmod +x $out/bin/arm-none-eabi-gdb 71 ''; 72 73 meta = with lib; {
··· 3 stdenv, 4 fetchurl, 5 ncurses5, 6 libxcrypt-legacy, 7 }: 8 9 stdenv.mkDerivation rec { ··· 39 installPhase = '' 40 mkdir -p $out 41 cp -r * $out 42 + # these binaries require ancient Python 3.8 not available in Nixpkgs 43 + rm $out/bin/{arm-none-eabi-gdb-py,arm-none-eabi-gdb-add-index-py} || : 44 ''; 45 46 + preFixup = lib.optionalString stdenv.isLinux '' 47 find $out -type f | while read f; do 48 patchelf "$f" > /dev/null 2>&1 || continue 49 patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true ··· 52 "$out" 53 stdenv.cc.cc 54 ncurses5 55 libxcrypt-legacy 56 ] 57 } "$f" || true 58 done 59 ''; 60 61 meta = with lib; {
+3 -15
pkgs/by-name/gc/gcc-arm-embedded-13/package.nix
··· 3 stdenv, 4 fetchurl, 5 ncurses5, 6 - python39, 7 libxcrypt-legacy, 8 - runtimeShell, 9 }: 10 11 stdenv.mkDerivation rec { ··· 42 installPhase = '' 43 mkdir -p $out 44 cp -r * $out 45 ''; 46 47 - preFixup = '' 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 ··· 53 "$out" 54 stdenv.cc.cc 55 ncurses5 56 - python39 57 libxcrypt-legacy 58 ] 59 } "$f" || true 60 done 61 - ''; 62 - 63 - postFixup = '' 64 - mv $out/bin/arm-none-eabi-gdb $out/bin/arm-none-eabi-gdb-unwrapped 65 - cat <<EOF > $out/bin/arm-none-eabi-gdb 66 - #!${runtimeShell} 67 - export PYTHONPATH=${python39}/lib/python3.9 68 - export PYTHONHOME=${python39.interpreter} 69 - exec $out/bin/arm-none-eabi-gdb-unwrapped "\$@" 70 - EOF 71 - chmod +x $out/bin/arm-none-eabi-gdb 72 ''; 73 74 meta = with lib; {
··· 3 stdenv, 4 fetchurl, 5 ncurses5, 6 libxcrypt-legacy, 7 }: 8 9 stdenv.mkDerivation rec { ··· 40 installPhase = '' 41 mkdir -p $out 42 cp -r * $out 43 + # these binaries require ancient Python 3.8 not available in Nixpkgs 44 + rm $out/bin/{arm-none-eabi-gdb-py,arm-none-eabi-gdb-add-index-py} || : 45 ''; 46 47 + preFixup = lib.optionalString stdenv.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 ··· 53 "$out" 54 stdenv.cc.cc 55 ncurses5 56 libxcrypt-legacy 57 ] 58 } "$f" || true 59 done 60 ''; 61 62 meta = with lib; {
+2 -3
pkgs/by-name/gc/gcc-arm-embedded-14/package.nix
··· 4 fetchurl, 5 ncurses6, 6 libxcrypt-legacy, 7 - runtimeShell, 8 zstd, 9 - xz, 10 }: 11 12 stdenv.mkDerivation rec { ··· 57 stdenv.cc.cc 58 ncurses6 59 libxcrypt-legacy 60 - zstd 61 xz 62 ] 63 } "$f" || true 64 done
··· 4 fetchurl, 5 ncurses6, 6 libxcrypt-legacy, 7 + xz, 8 zstd, 9 }: 10 11 stdenv.mkDerivation rec { ··· 56 stdenv.cc.cc 57 ncurses6 58 libxcrypt-legacy 59 xz 60 + zstd 61 ] 62 } "$f" || true 63 done
+1 -1
pkgs/by-name/gc/gcc-arm-embedded-6/package.nix
··· 39 ln -s $out/share/doc/gcc-arm-none-eabi/man $out/man 40 ''; 41 42 - preFixup = '' 43 find $out -type f | while read f; do 44 patchelf "$f" > /dev/null 2>&1 || continue 45 patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true
··· 39 ln -s $out/share/doc/gcc-arm-none-eabi/man $out/man 40 ''; 41 42 + preFixup = lib.optionalString stdenv.isLinux '' 43 find $out -type f | while read f; do 44 patchelf "$f" > /dev/null 2>&1 || continue 45 patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true
+1 -1
pkgs/by-name/gc/gcc-arm-embedded-7/package.nix
··· 39 ln -s $out/share/doc/gcc-arm-none-eabi/man $out/man 40 ''; 41 42 - preFixup = '' 43 find $out -type f | while read f; do 44 patchelf "$f" > /dev/null 2>&1 || continue 45 patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true
··· 39 ln -s $out/share/doc/gcc-arm-none-eabi/man $out/man 40 ''; 41 42 + preFixup = lib.optionalString stdenv.isLinux '' 43 find $out -type f | while read f; do 44 patchelf "$f" > /dev/null 2>&1 || continue 45 patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true
+1 -1
pkgs/by-name/gc/gcc-arm-embedded-8/package.nix
··· 39 ln -s $out/share/doc/gcc-arm-none-eabi/man $out/man 40 ''; 41 42 - preFixup = '' 43 find $out -type f | while read f; do 44 patchelf "$f" > /dev/null 2>&1 || continue 45 patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true
··· 39 ln -s $out/share/doc/gcc-arm-none-eabi/man $out/man 40 ''; 41 42 + preFixup = lib.optionalString stdenv.isLinux '' 43 find $out -type f | while read f; do 44 patchelf "$f" > /dev/null 2>&1 || continue 45 patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true
+1 -1
pkgs/by-name/gc/gcc-arm-embedded-9/package.nix
··· 41 ln -s $out/share/doc/gcc-arm-none-eabi/man $out/man 42 ''; 43 44 - preFixup = '' 45 find $out -type f | while read f; do 46 patchelf "$f" > /dev/null 2>&1 || continue 47 patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true
··· 41 ln -s $out/share/doc/gcc-arm-none-eabi/man $out/man 42 ''; 43 44 + preFixup = lib.optionalString stdenv.isLinux '' 45 find $out -type f | while read f; do 46 patchelf "$f" > /dev/null 2>&1 || continue 47 patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true