nix/pkgs/rundeck-bin: init

This commit is contained in:
Luke Granger-Brown 2021-04-10 17:05:21 +00:00
parent a291107f62
commit 9c1c7ec985
2 changed files with 43 additions and 0 deletions

View file

@ -27,5 +27,6 @@
prometheus-snmp-config = import ./prometheus-snmp-config args; prometheus-snmp-config = import ./prometheus-snmp-config args;
flameshot = pkgs.libsForQt5.callPackage ./flameshot {}; flameshot = pkgs.libsForQt5.callPackage ./flameshot {};
lukegb-wallpapers = pkgs.callPackage ./lukegb-wallpapers {}; lukegb-wallpapers = pkgs.callPackage ./lukegb-wallpapers {};
rundeck-bin = pkgs.callPackage ./rundeck-bin {};
} // (import ./heptapod-runner.nix args) } // (import ./heptapod-runner.nix args)
// (import ./lightspeed args) // (import ./lightspeed args)

View file

@ -0,0 +1,42 @@
{ 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;
};
}