vscode-extensions.yoavbls.pretty-ts-errors: 0.5.4 -> 0.6.1 (#363464)
[NixPkgs.git] / pkgs / by-name / sy / sympa / package.nix
blob83018f0c72e0db3058e0e78572ad691737757b90
2   lib,
3   stdenv,
4   perl,
5   fetchFromGitHub,
6   autoreconfHook,
7   nixosTests,
8 }:
10 let
11   dataDir = "/var/lib/sympa";
12   runtimeDir = "/run/sympa";
13   perlEnv = perl.withPackages (
14     p: with p; [
15       ArchiveZip
16       CGI
17       CGIFast
18       ClassSingleton
19       DateTime
20       DBI
21       DateTimeFormatMail
22       DateTimeTimeZone
23       Encode
24       FCGI
25       FileCopyRecursive
26       FileNFSLock
27       FilePath
28       HTMLParser
29       HTMLFormatter
30       HTMLTree
31       HTMLStripScriptsParser
32       IO
33       IOStringy
34       LWP
35       libintl-perl
37       MHonArc
38       MIMECharset
39       MIMETools
40       MIMEEncWords
41       MIMELiteHTML
42       MailTools
43       NetCIDR
44       ScalarListUtils
45       SysSyslog
46       TermProgressBar
47       TemplateToolkit
48       URI
49       UnicodeLineBreak
50       XMLLibXML
52       ### Features
53       Clone
54       CryptEksblowfish
56       DBDPg
57       DBDSQLite
58       DBDmysql
60       DataPassword
61       EncodeLocale
62       IOSocketSSL
63       MailDKIM
64       NetDNS
65       perlldap
66       libnet
67       SOAPLite
68     ]
69   );
71 stdenv.mkDerivation rec {
72   pname = "sympa";
73   version = "6.2.74";
75   src = fetchFromGitHub {
76     owner = "sympa-community";
77     repo = pname;
78     rev = version;
79     sha256 = "sha256-Z5V4LqogIobs8pT+ED6iZGjnC+J+GQBHq2opu1yv/7k=";
80   };
82   configureFlags = [
83     "--enable-fhs"
84     "--without-initdir"
85     "--without-unitsdir"
86     "--without-smrshdir"
88     "--with-lockdir=${runtimeDir}"
89     "--with-piddir=${runtimeDir}"
90     "--with-confdir=${dataDir}/etc"
91     "--sysconfdir=${dataDir}/etc"
92     "--with-spooldir=${dataDir}/spool"
93     "--with-expldir=${dataDir}/list_data"
94   ];
95   nativeBuildInputs = [ autoreconfHook ];
96   buildInputs = [ perlEnv ];
97   patches = [ ./make-docs.patch ];
99   prePatch = ''
100     patchShebangs po/sympa/add-lang.pl
101   '';
103   preInstall = ''
104     mkdir "$TMP/bin"
105     for i in chown chgrp chmod; do
106       echo '#!${stdenv.shell}' >> "$TMP/bin/$i"
107       chmod +x "$TMP/bin/$i"
108     done
109     PATH="$TMP/bin:$PATH"
110   '';
112   postInstall = ''
113     rm -rf "$TMP/bin"
114   '';
116   passthru.tests = {
117     inherit (nixosTests) sympa;
118   };
120   meta = with lib; {
121     description = "Open source mailing list manager";
122     homepage = "https://www.sympa.org";
123     license = licenses.gpl2Plus;
124     maintainers = with maintainers; [
125       sorki
126       mmilata
127     ];
128     platforms = platforms.all;
129   };