42 lines
865 B
Nix
42 lines
865 B
Nix
{ stdenvNoCC
|
|
, lib
|
|
, fetchurl
|
|
, jdk8
|
|
, makeWrapper
|
|
}:
|
|
|
|
let
|
|
jdk = jdk8;
|
|
in
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "rundeck";
|
|
version = "3.3.10-20210301";
|
|
|
|
src = fetchurl {
|
|
url = "https://dl.bintray.com/rundeck/rundeck-maven/org/rundeck/rundeck/rundeck-${version}.war";
|
|
hash = "sha256:0ff0bgpikl2kw6hz78gzn25clax60i0nh7dqzyb1wqj8ckhnqbbq";
|
|
};
|
|
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/rundeck --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;
|
|
};
|
|
}
|