2021-04-10 17:05:21 +00:00
|
|
|
{ stdenvNoCC
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, jdk8
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
jdk = jdk8;
|
|
|
|
in
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "rundeck";
|
2021-07-24 20:58:12 +00:00
|
|
|
version = "3.4.1-20210715";
|
2021-04-10 17:05:21 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-24 20:58:12 +00:00
|
|
|
url = "https://packagecloud.io/pagerduty/rundeck/packages/java/org.rundeck/rundeck-${version}.war/artifacts/rundeck-${version}.war/download";
|
|
|
|
hash = "sha256-CvA9PoyqdpeKN7sjI2n6BPxN7MY8CDIko7PX07zw+Mc=";
|
2021-04-10 17:05:21 +00:00
|
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ jdk ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share $out/bin
|
|
|
|
install -D $src $out/share/rundeck.war
|
|
|
|
|
|
|
|
makeWrapper ${jdk}/bin/java \
|
2021-04-10 17:26:42 +00:00
|
|
|
$out/bin/rundeckd --add-flags "-jar $out/share/rundeck.war"
|
2021-04-10 17:05:21 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://rundeck.com";
|
|
|
|
description = "Runbook automation";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|