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

42 lines
902 B
Nix

{ stdenvNoCC
, lib
, fetchurl
, jdk8
, makeWrapper
}:
let
jdk = jdk8;
in
stdenvNoCC.mkDerivation rec {
pname = "rundeck";
version = "3.4.1-20210715";
src = fetchurl {
url = "https://packagecloud.io/pagerduty/rundeck/packages/java/org.rundeck/rundeck-${version}.war/artifacts/rundeck-${version}.war/download";
hash = "sha256-CvA9PoyqdpeKN7sjI2n6BPxN7MY8CDIko7PX07zw+Mc=";
};
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"
runHook postInstall
'';
meta = with lib; {
homepage = "https://rundeck.com";
description = "Runbook automation";
platforms = platforms.unix;
license = licenses.asl20;
};
}