riemann: provide executable and config

fixes #20821
This commit is contained in:
Pascal Wittmann 2016-12-11 23:32:39 +01:00
parent d5ec2a2c9d
commit 7bcc6e9c45
No known key found for this signature in database
GPG key ID: C899ACE7E2322852

View file

@ -12,8 +12,12 @@ stdenv.mkDerivation rec {
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p $out/share/java
sed -i 's#lib/riemann.jar#$out/share/java/riemann.jar#' bin/riemann
mkdir -p $out/share/java $out/bin $out/etc
mv lib/riemann.jar $out/share/java/
mv bin/riemann $out/bin/
mv etc/riemann.config $out/etc/
'';
meta = with stdenv.lib; {