diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-10-03 17:29:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-03 17:29:25 +0100 |
commit | 50a306125cd04579c7129061bd577a8ab7b8f5b4 (patch) | |
tree | e17268d9c0f4af98a2e242bededc36571e3c98c1 /pkgs/development/compilers | |
parent | c5d4957103801c04699bf2ce574af5e42f51dc8b (diff) | |
parent | b3531b9719f37de1c25c40192399b34dba4e0494 (diff) | |
download | nixlib-50a306125cd04579c7129061bd577a8ab7b8f5b4.tar nixlib-50a306125cd04579c7129061bd577a8ab7b8f5b4.tar.gz nixlib-50a306125cd04579c7129061bd577a8ab7b8f5b4.tar.bz2 nixlib-50a306125cd04579c7129061bd577a8ab7b8f5b4.tar.lz nixlib-50a306125cd04579c7129061bd577a8ab7b8f5b4.tar.xz nixlib-50a306125cd04579c7129061bd577a8ab7b8f5b4.tar.zst nixlib-50a306125cd04579c7129061bd577a8ab7b8f5b4.zip |
Merge pull request #47542 from prusnak/gcc-arm-embedded_update
gcc-arm-embedded: 6-2017-q2-update -> 7-2018-q2-update
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/gcc-arm-embedded/7/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/compilers/gcc-arm-embedded/7/default.nix b/pkgs/development/compilers/gcc-arm-embedded/7/default.nix new file mode 100644 index 000000000000..c22683dae03a --- /dev/null +++ b/pkgs/development/compilers/gcc-arm-embedded/7/default.nix @@ -0,0 +1,39 @@ +{ stdenv, lib, fetchurl, ncurses5, python27 }: + +with lib; + +stdenv.mkDerivation rec { + name = "gcc-arm-embedded-${version}"; + version = "7-2018-q2-update"; + subdir = "7-2018q2"; + + urlString = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${subdir}/gcc-arm-none-eabi-${version}-linux.tar.bz2"; + + src = fetchurl { url=urlString; sha256="0sgysp3hfpgrkcbfiwkp0a7ymqs02khfbrjabm52b5z61sgi05xv"; }; + + phases = [ "unpackPhase" "installPhase" "fixupPhase" ]; + + installPhase = '' + mkdir -p $out + cp -r * $out + ''; + + dontPatchELF = true; + dontStrip = true; + + preFixup = '' + find $out -type f | while read f; do + patchelf $f > /dev/null 2>&1 || continue + patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true + patchelf --set-rpath ${stdenv.lib.makeLibraryPath [ "$out" stdenv.cc.cc ncurses5 python27 ]} "$f" || true + done + ''; + + meta = { + description = "Pre-built GNU toolchain from ARM Cortex-M & Cortex-R processors (Cortex-M0/M0+/M3/M4/M7, Cortex-R4/R5/R7/R8)"; + homepage = https://developer.arm.com/open-source/gnu-toolchain/gnu-rm; + license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ]; + maintainers = with maintainers; [ prusnak ]; + platforms = platforms.linux; + }; +} |