Merge pull request #210435 from Stunkymonkey/activemq-broker-phases

This commit is contained in:
Sandro 2023-01-23 23:37:51 +01:00 committed by GitHub
commit d105aed7f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = {