about summary refs log tree commit diff
path: root/pkgs/development/interpreters/php/default.nix
blob: 745c171fa8affa97c2df1bb84e5863fc988925c8 (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
{stdenv, fetchurl, flex, bison, libxml2, apacheHttpd, unixODBC ? null, postgresql ? null}:

assert libxml2 != null;

stdenv.mkDerivation {
  name = "php-5.2.4";
  src = fetchurl {
    url = http://nl3.php.net/distributions/php-5.2.4.tar.bz2;
    sha256 = "1h513j7crz08n7rlh8v7cvxfzisj87mvvyfrkiaa76v1wicm4bsh";
  };
  
  inherit flex bison libxml2 apacheHttpd;

  builder = ./builder.sh;

  buildInputs = [flex bison libxml2 apacheHttpd];

  inherit unixODBC postgresql;
  
  odbcSupport = unixODBC != null;

  patches = [./fix.patch];
}