summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc/3.3/default.nix
blob: bbb52733337543a3401af34310d1ded8fe2176f4 (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
{ stdenv, fetchurl, noSysDirs
, langC ? true, langCC ? true, langFortran ? false
}:

assert langC;

# !!! impurity: finds /usr/bin/as, /usr/bin/ranlib.

stdenv.mkDerivation {
  name = "gcc-3.3.6";
  
  builder = ./builder.sh;
  
  src = fetchurl {
    url = http://ftp.gnu.org/gnu/gcc/gcc-3.3.6/gcc-3.3.6.tar.bz2;
    md5 = "6936616a967da5a0b46f1e7424a06414";
  };

  # inspiration: https://aur.archlinux.org/packages/g77/
  postPatch = ''
    substituteInPlace gcc/config/i386/linux.h --replace 'struct siginfo' siginfo_t
  '';

  inherit noSysDirs langC langCC langFortran;

  meta = {
    homepage = "http://gcc.gnu.org/";
    license = "GPL/LGPL";
    description = "GNU Compiler Collection, 3.3.x";
    broken = true;
  };
}