nix/pkgs/rundeck-bin: init
This commit is contained in:
parent
a291107f62
commit
9c1c7ec985
2 changed files with 43 additions and 0 deletions
|
@ -27,5 +27,6 @@
|
|||
prometheus-snmp-config = import ./prometheus-snmp-config args;
|
||||
flameshot = pkgs.libsForQt5.callPackage ./flameshot {};
|
||||
lukegb-wallpapers = pkgs.callPackage ./lukegb-wallpapers {};
|
||||
rundeck-bin = pkgs.callPackage ./rundeck-bin {};
|
||||
} // (import ./heptapod-runner.nix args)
|
||||
// (import ./lightspeed args)
|
||||
|
|
42
nix/pkgs/rundeck-bin/default.nix
Normal file
42
nix/pkgs/rundeck-bin/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue