dolibarr: init at 15.0.3

This commit is contained in:
Aaron Andersen 2022-08-14 10:02:46 -04:00 committed by Raito Bezarius
parent 2c50d90470
commit ac52fbb3ba
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,39 @@
{ stdenv, lib, fetchFromGitHub, stateDir ? "/var/lib/dolibarr" }:
stdenv.mkDerivation rec {
pname = "dolibarr";
version = "15.0.3";
src = fetchFromGitHub {
owner = "Dolibarr";
repo = "dolibarr";
rev = version;
sha256 = "sha256-HMOYj93ZvqM0FQjt313yuGj/r9ELqQlnNkg/CxrBjRM=";
};
dontBuild = true;
postPatch = ''
find . -type f -name "*.php" -print0 | xargs -0 sed -i 's|/etc/dolibarr|${stateDir}|g'
substituteInPlace htdocs/filefunc.inc.php \
--replace '//$conffile = ' '$conffile = ' \
--replace '//$conffiletoshow = ' '$conffiletoshow = '
substituteInPlace htdocs/install/inc.php \
--replace '//$conffile = ' '$conffile = ' \
--replace '//$conffiletoshow = ' '$conffiletoshow = '
'';
installPhase = ''
mkdir -p "$out"
cp -r * $out
'';
meta = with lib; {
description = "A enterprise resource planning (ERP) and customer relationship manager (CRM) server";
homepage = "https://dolibarr.org/";
license = licenses.gpl3Plus;
maintainers = [ maintainers.raitobezarius ];
};
}

View File

@ -3578,6 +3578,8 @@ with pkgs;
dokuwiki = callPackage ../servers/web-apps/dokuwiki { };
dolibarr = callPackage ../servers/web-apps/dolibarr { };
doppler = callPackage ../tools/security/doppler {};
dosage = callPackage ../applications/graphics/dosage { };