Merge pull request #79029 from helsinki-systems/confluence-mysql
confluence: Add support for MySQL driver
This commit is contained in:
commit
8b8b6b20a8
@ -1,9 +1,12 @@
|
|||||||
{ stdenv, lib, fetchurl
|
{ stdenvNoCC, lib, fetchurl, mysql_jdbc ? null
|
||||||
, enableSSO ? false
|
, enableSSO ? false
|
||||||
, crowdProperties ? null
|
, crowdProperties ? null
|
||||||
|
, withMysql ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
assert withMysql -> (mysql_jdbc != null);
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation rec {
|
||||||
pname = "atlassian-confluence";
|
pname = "atlassian-confluence";
|
||||||
version = "7.2.0";
|
version = "7.2.0";
|
||||||
|
|
||||||
@ -28,6 +31,8 @@ stdenv.mkDerivation rec {
|
|||||||
cat <<EOF > confluence/WEB-INF/classes/crowd.properties
|
cat <<EOF > confluence/WEB-INF/classes/crowd.properties
|
||||||
${crowdProperties}
|
${crowdProperties}
|
||||||
EOF
|
EOF
|
||||||
|
'' + lib.optionalString withMysql ''
|
||||||
|
cp -v ${mysql_jdbc}/share/java/*jar confluence/WEB-INF/lib/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -35,7 +40,7 @@ stdenv.mkDerivation rec {
|
|||||||
patchShebangs $out/bin
|
patchShebangs $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "Team collaboration software written in Java and mainly used in corporate environments";
|
description = "Team collaboration software written in Java and mainly used in corporate environments";
|
||||||
homepage = "https://www.atlassian.com/software/confluence";
|
homepage = "https://www.atlassian.com/software/confluence";
|
||||||
license = licenses.unfree;
|
license = licenses.unfree;
|
||||||
|
Loading…
Reference in New Issue
Block a user