1 { lib, stdenv, perl, fetchFromGitHub, autoreconfHook, nixosTests }:
4 dataDir = "/var/lib/sympa";
5 runtimeDir = "/run/sympa";
6 perlEnv = perl.withPackages (p: with p; [
23 HTMLStripScriptsParser
62 stdenv.mkDerivation rec {
66 src = fetchFromGitHub {
67 owner = "sympa-community";
70 sha256 = "sha256-8G6MxpqVa3E5J/68E7tljcXF4w7OmNkI0nJwsgxJE28=";
79 "--with-lockdir=${runtimeDir}"
80 "--with-piddir=${runtimeDir}"
81 "--with-confdir=${dataDir}/etc"
82 "--sysconfdir=${dataDir}/etc"
83 "--with-spooldir=${dataDir}/spool"
84 "--with-expldir=${dataDir}/list_data"
86 nativeBuildInputs = [ autoreconfHook ];
87 buildInputs = [ perlEnv ];
88 patches = [ ./make-docs.patch ];
91 patchShebangs po/sympa/add-lang.pl
96 for i in chown chgrp chmod; do
97 echo '#!${stdenv.shell}' >> "$TMP/bin/$i"
98 chmod +x "$TMP/bin/$i"
100 PATH="$TMP/bin:$PATH"
108 inherit (nixosTests) sympa;
112 description = "Open source mailing list manager";
113 homepage = "https://www.sympa.org";
114 license = licenses.gpl2Plus;
115 maintainers = with maintainers; [ sorki mmilata ];
116 platforms = platforms.all;