From 4431b8377b327f4f3aaee893ffbc7181e3f2af58 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Thu, 3 Nov 2005 23:20:43 +0000 Subject: [PATCH] add binutils for use in a crosscompiler, hosted on x86 though. svn path=/nixpkgs/trunk/; revision=4214 --- pkgs/development/tools/misc/binutils-arm/builder.sh | 12 ++++++++++++ pkgs/development/tools/misc/binutils-arm/default.nix | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/tools/misc/binutils-arm/builder.sh create mode 100644 pkgs/development/tools/misc/binutils-arm/default.nix diff --git a/pkgs/development/tools/misc/binutils-arm/builder.sh b/pkgs/development/tools/misc/binutils-arm/builder.sh new file mode 100644 index 000000000000..ac8b7f13a790 --- /dev/null +++ b/pkgs/development/tools/misc/binutils-arm/builder.sh @@ -0,0 +1,12 @@ +. $stdenv/setup + +patchConfigure() { + # Clear the default library search path. + if test "$noSysDirs" = "1"; then + echo 'NATIVE_LIB_DIRS=' >> ld/configure.tgt + fi +} + +preConfigure=patchConfigure + +genericBuild diff --git a/pkgs/development/tools/misc/binutils-arm/default.nix b/pkgs/development/tools/misc/binutils-arm/default.nix new file mode 100644 index 000000000000..580e87e5ac22 --- /dev/null +++ b/pkgs/development/tools/misc/binutils-arm/default.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl, noSysDirs}: + +stdenv.mkDerivation { + name = "binutils-2.16.1-arm"; + builder = ./builder.sh; + src = fetchurl { + url = http://ftp.nluug.nl/gnu/binutils/binutils-2.16.1.tar.bz2; + md5 = "6a9d529efb285071dad10e1f3d2b2967"; + }; + inherit noSysDirs; + configureFlags = "--target=arm-linux"; +}