summary refs log tree commit diff
path: root/pkgs/servers/foswiki/default.nix
blob: 5bfeef6f1fc13ecca044f9707aea4843007e217d (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
{ stdenv, fetchurl, perlPackages }:

perlPackages.buildPerlPackage rec {
  name = "foswiki-${version}";
  version = "2.1.0";

  src = fetchurl {
    url = "mirror://sourceforge/foswiki/${version}/Foswiki-${version}.tgz";
    sha256 = "03286pb966h99zgickm2f20rgnqwp9wga5wfkdvirv084kjdh8vp";
  };

  outputs = [ "out" ];

  buildInputs = with perlPackages; [
    # minimum requirements from INSTALL.html#System_Requirements
    AlgorithmDiff ArchiveTar AuthenSASL CGI CGISession CryptPasswdMD5
    DigestSHA EmailMIME Encode Error FileCopyRecursive HTMLParser HTMLTree
    IOSocketIP IOSocketSSL JSON
    LocaleMaketext LocaleMaketextLexicon LocaleMsgfmt
    LWP URI perlPackages.version
    /*# optional dependencies
    libapreq2 DBI DBDmysql DBDPg DBDSQLite FCGI FCGIProcManager
    CryptSMIME CryptX509 ConvertPEM
    */
  ];

  preConfigure = ''
    touch Makefile.PL
    patchShebangs .
  '';
  configureScript = "bin/configure";

  # there's even no makefile
  doCheck = false;
  installPhase = ''cp -r . "$out" '';

  meta = with stdenv.lib; {
    description = "An open, programmable collaboration platform";
    homepage = http://foswiki.org;
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
  };
}