depot/nix/pkgs/rundeck-bin/default.nix

43 lines
902 B
Nix
Raw Normal View History

2021-04-10 17:05:21 +00:00
{ stdenvNoCC
, lib
, fetchurl
, jdk8
, makeWrapper
}:
let
jdk = jdk8;
in
stdenvNoCC.mkDerivation rec {
pname = "rundeck";
version = "3.4.9-20211221";
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-HwXPDmjAIc825ZFxteTOfimQmK2DdhAHA0H4UYisgFw=";
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 \
$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;
};
}