-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
589fc0d
commit d267c5f
Showing
1 changed file
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ | ||
lib, | ||
stdenv, | ||
fetchurl, | ||
makeWrapper, | ||
jdk17, | ||
which, | ||
coreutils, | ||
openssh, | ||
}: | ||
|
||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "rundeck"; | ||
version = "5.8.0-20241205"; | ||
|
||
src = fetchurl { | ||
url = "https://packagecloud.io/pagerduty/rundeck/packages/java/org.rundeck/rundeck-${finalAttrs.version}.war/artifacts/rundeck-${finalAttrs.version}.war/download?distro_version_id=167"; | ||
hash = "sha256-fqmRYzmBteiZjCmBj30J6RLBzgZgwLcFzUKNFIsH2MQ="; | ||
}; | ||
|
||
nativeBuildInputs = [ makeWrapper ]; | ||
buildInputs = [ jdk17 ]; | ||
|
||
dontUnpack = true; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
mkdir -p $out/share/rundeck | ||
cp $src $out/share/rundeck/rundeck.war | ||
mkdir -p $out/bin | ||
# Main rundeck executable | ||
makeWrapper ${lib.getExe jdk17} $out/bin/rundeck \ | ||
--set RDECK_BASE "/var/lib/rundeck" \ | ||
--add-flags "-Xmx4g" \ | ||
--add-flags "-Drdeck.base=/var/lib/rundeck" \ | ||
--add-flags "-Drundeck.config.location=/etc/rundeck" \ | ||
--add-flags "-jar $out/share/rundeck/rundeck.war" \ | ||
--prefix PATH : ${ | ||
lib.makeBinPath [ | ||
which | ||
coreutils | ||
openssh | ||
] | ||
} | ||
# Installation helper script | ||
makeWrapper ${lib.getExe jdk17} $out/bin/rundeck-install \ | ||
--set RDECK_BASE "/var/lib/rundeck" \ | ||
--add-flags "-jar $out/share/rundeck/rundeck.war" \ | ||
--add-flags "--installonly" \ | ||
--prefix PATH : ${ | ||
lib.makeBinPath [ | ||
which | ||
coreutils | ||
openssh | ||
] | ||
} | ||
runHook postInstall | ||
''; | ||
|
||
meta = { | ||
description = "Job scheduler and runbook automation"; | ||
longDescription = '' | ||
Rundeck is an open source automation service with a web console, | ||
command line tools and a WebAPI. It lets you easily run automation tasks | ||
across a set of nodes. | ||
''; | ||
homepage = "https://www.rundeck.com/"; | ||
changelog = "https://docs.rundeck.com/docs/history/"; | ||
sourceProvenance = [ lib.sourceTypes.binaryBytecode ]; | ||
license = lib.licenses.asl20; | ||
platforms = lib.platforms.unix; | ||
maintainers = [ lib.maintainers.liberodark ]; | ||
}; | ||
}) |