dolibarr: init at 15.0.3
This commit is contained in:
parent
2c50d90470
commit
ac52fbb3ba
39
pkgs/servers/web-apps/dolibarr/default.nix
Normal file
39
pkgs/servers/web-apps/dolibarr/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user