forked from mirrors/nixpkgs
* Added binutils. The aterm library now builds in a fully Nixified environment.
svn path=/nixpkgs/trunk/; revision=315
This commit is contained in:
parent
d343a357f1
commit
287225e1e1
9
pkgs/binutils/binutils-build.sh
Executable file
9
pkgs/binutils/binutils-build.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#! /bin/sh
|
||||
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
tar xvfj $src || exit 1
|
||||
cd binutils-* || exit 1
|
||||
./configure --prefix=$out || exit 1
|
||||
make || exit 1
|
||||
make install || exit 1
|
13
pkgs/binutils/binutils.fix
Normal file
13
pkgs/binutils/binutils.fix
Normal file
|
@ -0,0 +1,13 @@
|
|||
Package(
|
||||
[ ("name", "binutils-2.14")
|
||||
|
||||
, ("build", Relative("binutils/binutils-build.sh"))
|
||||
|
||||
, ("src", Call(IncludeFix("fetchurl/fetchurl.fix"),
|
||||
[ ("url", "ftp://ftp.nluug.nl/pub/gnu/binutils/binutils-2.14.tar.bz2")
|
||||
, ("md5", "2da8def15d28af3ec6af0982709ae90a")
|
||||
]))
|
||||
|
||||
, ("stdenv", IncludeFix("stdenv-linux/stdenv-nativetools.fix"))
|
||||
]
|
||||
)
|
|
@ -19,6 +19,7 @@ Function(["nativeTools"],
|
|||
, IncludeFix("diffutils/diffutils.fix")
|
||||
, IncludeFix("gzip/gzip.fix")
|
||||
, IncludeFix("gnumake/gnumake.fix")
|
||||
, IncludeFix("binutils/binutils.fix")
|
||||
]))
|
||||
|
||||
, ("gcc", If(Var("nativeTools"), "", IncludeFix("gcc/gcc.fix")))
|
||||
|
|
Loading…
Reference in a new issue