diff options
author | Rok Garbas <rok@garbas.si> | 2016-12-15 12:36:07 +0100 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2016-12-22 13:36:44 +0100 |
commit | e6fa6b21e14df0d204a1f428254651e191270e7a (patch) | |
tree | a23b82741943c9910229c3192c6bf55f3c9e57a6 /pkgs/servers/http/apache-modules | |
parent | 9f1880039fef079927ffb746f8b95a4ce4983fa3 (diff) |
apacheHttpdPackages.mod_perl: init at 2.0.10
Diffstat (limited to 'pkgs/servers/http/apache-modules')
-rw-r--r-- | pkgs/servers/http/apache-modules/mod_perl/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/servers/http/apache-modules/mod_perl/default.nix b/pkgs/servers/http/apache-modules/mod_perl/default.nix new file mode 100644 index 000000000000..04746d678c52 --- /dev/null +++ b/pkgs/servers/http/apache-modules/mod_perl/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl, apacheHttpd, perl }: + +stdenv.mkDerivation rec { + name = "mod_perl-2.0.10"; + + src = fetchurl { + url = "mirror://apache/perl/${name}.tar.gz"; + sha256 = "0r1bhzwl5gr0202r6448943hjxsickzn55kdmb7dzad39vnq7kyi"; + }; + + buildInputs = [ apacheHttpd perl ]; + buildPhase = '' + perl Makefile.PL \ + MP_APXS=${apacheHttpd.dev}/bin/apxs + make + ''; + installPhase = '' + mkdir -p $out + make install DESTDIR=$out + mv $out${apacheHttpd}/* $out + mv $out${apacheHttpd.dev}/* $out + mv $out${perl}/* $out + rm $out/nix -rf + ''; +} |