Skip to content

Commit

Permalink
rundeck: init at 5.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
liberodark committed Jan 3, 2025
1 parent 589fc0d commit d267c5f
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions pkgs/by-name/ru/rundeck/package.nix
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 ];
};
})

0 comments on commit d267c5f

Please sign in to comment.