2022-03-30 09:31:56 +00:00
|
|
|
{ stdenvNoCC, lib, fetchurl, mysql_jdbc
|
|
|
|
, withMysql ? true
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "atlassian-bamboo";
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "8.2.6";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://product-downloads.atlassian.com/software/bamboo/downloads/atlassian-bamboo-${version}.tar.gz";
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "sha256-9TYTXSdGQ7qSqvF25Bn1l5N8NbKndcO8HiJSc4NUois=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
echo "bamboo.home=/run/bamboo/home" > atlassian-bamboo/WEB-INF/classes/bamboo-init.properties
|
|
|
|
mv conf/server.xml conf/server.xml.dist
|
|
|
|
ln -sf /run/atlassian-bamboo/server.xml conf/server.xml
|
|
|
|
rm -r logs; ln -sf /run/atlassian-bamboo/logs/ .
|
|
|
|
rm -r temp; ln -sf /run/atlassian-bamboo/temp/ .
|
|
|
|
rm -r work; ln -sf /run/atlassian-bamboo/work/ .
|
|
|
|
'' + lib.optionalString withMysql ''
|
|
|
|
cp -v ${mysql_jdbc}/share/java/*jar atlassian-bamboo/lib/
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cp -rva . $out
|
|
|
|
patchShebangs $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Bamboo Data Center is a continuous delivery server.";
|
|
|
|
homepage = "https://www.atlassian.com/software/bamboo";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2022-03-30 09:31:56 +00:00
|
|
|
license = with licenses; [ unfree ];
|
|
|
|
maintainers = with maintainers; [ techknowlogick ];
|
|
|
|
};
|
|
|
|
}
|