summary refs log tree commit diff
path: root/pkgs/development/tools/misc/arm-frc-linux-gnueabi-binutils/default.nix
blob: fff91c6f7f38d6fef1425f1cb70697e6d633b226 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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;
    broken = true; # since 2017-09-10
    priority = 3;
  };
}