6 stateDir ? "/var/lib/dolibarr",
9 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
17 hash = "sha256-nxytzUEpEo1qeIlpbPQ4mETl5DAAP+d1bqUcYxEW26E=";
23 find . -type f -name "*.php" -print0 | xargs -0 sed -i 's|/etc/dolibarr|${stateDir}|g'
25 substituteInPlace htdocs/filefunc.inc.php \
26 --replace '//$conffile = ' '$conffile = ' \
27 --replace '//$conffiletoshow = ' '$conffiletoshow = '
29 substituteInPlace htdocs/install/inc.php \
30 --replace '//$conffile = ' '$conffile = ' \
31 --replace '//$conffiletoshow = ' '$conffiletoshow = '
39 passthru.tests = { inherit (nixosTests) dolibarr; };
42 description = "Enterprise resource planning (ERP) and customer relationship manager (CRM) server";
43 homepage = "https://dolibarr.org/";
44 license = licenses.gpl3Plus;