From 1d7a478c92e3ca3b952008e16cceafe4e831036b Mon Sep 17 00:00:00 2001 From: Cole Scott Date: Sat, 8 Apr 2017 02:11:52 +0200 Subject: [PATCH] arm-frc-linux-gnueabi-binutils: init at 2.28 --- .../default.nix | 50 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 52 insertions(+) create mode 100755 pkgs/development/tools/misc/arm-frc-linux-gnueabi-binutils/default.nix diff --git a/pkgs/development/tools/misc/arm-frc-linux-gnueabi-binutils/default.nix b/pkgs/development/tools/misc/arm-frc-linux-gnueabi-binutils/default.nix new file mode 100755 index 000000000000..4e3ad7ab8b08 --- /dev/null +++ b/pkgs/development/tools/misc/arm-frc-linux-gnueabi-binutils/default.nix @@ -0,0 +1,50 @@ +{stdenv, fetchurl, glibc, bison, arm-frc-linux-gnueabi-eglibc}: + +stdenv.mkDerivation rec { + _target = "arm-frc-linux-gnueabi"; + + version = "2.28"; + name = "${_target}-binutils-${version}"; + + src = fetchurl { + url = "ftp://ftp.gnu.org/gnu/binutils/binutils-${version}.tar.bz2"; + sha256 = "369737ce51587f92466041a97ab7d2358c6d9e1b6490b3940eb09fb0a9a6ac88"; + }; + + nativeBuildInputs = [ bison arm-frc-linux-gnueabi-eglibc ]; + buildInputs = [ glibc ]; + + configureFlags = '' + --target=${_target} + --with-pkgversion='GNU-Binutils-for-FRC' + --with-sysroot=$out/${_target} + --with-build-sysroot=/$out/${_target} + --disable-multilib + --disable-nls + --enable-lto + --disable-libiberty-install + --enable-ld + --enable-gold=default + --enable-plugins + ''; + + postConfigure = '' + make configure-host + ''; + + postInstall = '' + rm -rf $out/share/info + ''; + + meta = { + description = "FRC binutils"; + longDescription = '' + binutils used to build arm-frc-linux-gnueabi and user programs. + ''; + license = stdenv.lib.licenses.gpl2; + maintainers = [ stdenv.lib.maintainers.colescott ]; + platforms = stdenv.lib.platforms.linux; + + priority = 3; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e947c7db899c..d86f95e23edd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -448,6 +448,8 @@ with pkgs; arm-frc-linux-gnueabi-linux-api-headers = callPackage ../development/libraries/arm-frc-linux-gnueabi-linux-api-headers {}; + arm-frc-linux-gnueabi-binutils = callPackage ../development/tools/misc/arm-frc-linux-gnueabi-binutils {}; + arp-scan = callPackage ../tools/misc/arp-scan { }; artyFX = callPackage ../applications/audio/artyFX {};