nixos/activemq: deprecate phases

This commit is contained in:
Felix Buehler 2023-01-12 23:03:06 +01:00
parent bbb6af88eb
commit 9a13c5514c

View file

@ -7,20 +7,19 @@ let
cfg = config.services.activemq;
activemqBroker = stdenv.mkDerivation {
name = "activemq-broker";
phases = [ "installPhase" ];
buildInputs = [ jdk ];
installPhase = ''
mkdir -p $out/lib
source ${activemq}/lib/classpath.env
export CLASSPATH
ln -s "${./ActiveMQBroker.java}" ActiveMQBroker.java
javac -d $out/lib ActiveMQBroker.java
'';
};
activemqBroker = runCommand "activemq-broker"
{
nativeBuildInputs = [ jdk ];
} ''
mkdir -p $out/lib
source ${activemq}/lib/classpath.env
export CLASSPATH
ln -s "${./ActiveMQBroker.java}" ActiveMQBroker.java
javac -d $out/lib ActiveMQBroker.java
'';
in {
in
{
options = {
services.activemq = {