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; cfg = config.services.activemq;
activemqBroker = stdenv.mkDerivation { activemqBroker = runCommand "activemq-broker"
name = "activemq-broker"; {
phases = [ "installPhase" ]; nativeBuildInputs = [ jdk ];
buildInputs = [ jdk ]; } ''
installPhase = '' mkdir -p $out/lib
mkdir -p $out/lib source ${activemq}/lib/classpath.env
source ${activemq}/lib/classpath.env export CLASSPATH
export CLASSPATH ln -s "${./ActiveMQBroker.java}" ActiveMQBroker.java
ln -s "${./ActiveMQBroker.java}" ActiveMQBroker.java javac -d $out/lib ActiveMQBroker.java
javac -d $out/lib ActiveMQBroker.java '';
'';
};
in { in
{
options = { options = {
services.activemq = { services.activemq = {